@charset 'UTF-8';

/* サービスページのスタイル
================================================ */
.services-page {
    padding-top: 80px;
}

.p-service-hero {
    position: relative;
    height: 800px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.6) 100%
    ),
    url('../../images/services/services_hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.p-service-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 40px;
}

.p-service-hero__title {
    font-size: 4.5rem;
    font-weight: normal;
    margin-bottom: 30px;
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    letter-spacing: 0.2em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.p-service-hero__subtitle {
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    font-family: "Crimson Text", serif;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease 0.3s forwards;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

.p-service-hero__divider {
    width: 80px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 30px auto;
    opacity: 0;
    transform: scaleX(0);
    animation: scaleIn 0.8s ease 0.6s forwards;
}

.p-service-section {
    padding: 120px 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.p-service-section:nth-child(even) {
    background-color: #f8f8f8;
}

.p-service-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.p-service-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.p-service-text {
    flex: 1;
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft 1s ease forwards;
}

.p-service-title {
    font-size: 2.8rem;
    color: #2a5d1f;
    margin-bottom: 30px;
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    position: relative;
    padding-bottom: 20px;
    letter-spacing: 0.1em;
}

.p-service-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #2a5d1f;
    opacity: 0.5;
}

/* 説明文の共通スタイル */
.service-description {
    line-height: 1.7;
    color: #555;
    letter-spacing: 0.05em;
}

.p-service-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.8;
    color: #333;
    letter-spacing: 0.03em;
    max-width: 95%;
}

.service-item-description {
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.7;
    color: #444;
    letter-spacing: 0.02em;
    margin-top: 15px;
    padding: 0 10px;
}

.p-service-image {
    flex: 1;
    position: relative;
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 1s ease forwards;
}

.p-service-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid #2a5d1f;
    border-radius: 10px;
    z-index: -1;
}

.p-service-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.6s ease;
}

.p-service-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.p-service-examples {
    margin-top: 80px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.5s forwards;
    text-align: center;
}

.p-service-examples__title {
    font-size: 2rem;
    color: #2a5d1f;
    margin-bottom: 40px;
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.p-service-examples__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: #2a5d1f;
    opacity: 0.5;
}

.p-service-examples-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 業務内容と施工例で異なるスタイルを適用 */
.p-service-examples-grid.service-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
}

.p-service-examples-grid.service-items .p-service-example-item {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-item-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(42, 93, 31, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.service-item-title {
    font-size: 1.3rem;
    color: #2a5d1f;
    margin-bottom: 15px;
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    line-height: 1.4;
    text-align: center;
    font-weight: 500;
}

.service-item-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* 1-2アイテムの場合の中央揃え */
.p-service-examples-grid.service-items:has(.p-service-example-item:nth-child(1):nth-last-child(1)),
.p-service-examples-grid.service-items:has(.p-service-example-item:nth-child(1):nth-last-child(2)) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    justify-content: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* カテゴリー6（その他サービス）の特別調整 */
#category-6 .p-service-examples-grid.service-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#category-6 .p-service-examples-grid.service-items .p-service-example-item {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#category-6 .service-item-description {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.p-service-examples-grid.gallery-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

/* 施工例アイテムのスタイル */
.p-service-examples-grid.gallery-items .p-service-example-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.4s ease;
    aspect-ratio: 4/3;
}

/* 施工例の画像スタイル */
.p-service-examples-grid.gallery-items .p-service-example-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s ease;
}

/* ホバー効果の改善 - グラデーションを削除 */
.p-service-examples-grid.gallery-items .p-service-example-item::after {
    content: none;
}

.p-service-examples-grid.gallery-items .p-service-example-item:hover::after {
    opacity: 0;
}

/* ホバー効果はスケールのみに */
.p-service-examples-grid.gallery-items .p-service-example-item:hover img {
    transform: scale(1.08);
}

/* キャプションが見えるようにする場合は背景を追加 */
.p-service-example-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.p-service-example-item:hover .p-service-example-caption {
    opacity: 1;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* レスポンシブ調整 */
@media screen and (max-width: 1024px) {
    .p-service-content {
        flex-direction: column;
        gap: 50px;
        padding: 20px 0;
    }
    
    .p-service-text {
        padding-left: 20px;
    }
    
    .p-service-text::before {
        height: calc(100% - 10px);
    }
    
    .p-service-image::before {
        display: none;
    }
    
    .p-service-title {
        font-size: 2.4rem;
    }

    .p-service-examples-grid.service-items .p-service-example-item {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
        padding: 15px 10px;
    }

    .p-service-examples-grid.gallery-items {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media screen and (max-width: 768px) {
    .p-service-hero {
        height: 600px;
    }

    .p-service-hero__content {
        padding: 0 20px;
    }

    .p-service-hero__title {
        font-size: 3.2rem;
        margin-bottom: 20px;
    }

    .p-service-hero__subtitle {
        font-size: 1.4rem;
    }

    .p-service-hero__divider {
        width: 50px;
        margin: 20px auto;
    }

    .p-service-section {
        padding: 80px 0;
    }

    .p-service-container {
        padding: 0 20px;
    }

    .p-service-title {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    .p-service-description {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 30px;
    }

    .p-service-image {
        border-radius: 10px;
    }

    .p-service-image img {
        height: 350px;
    }

    .p-service-examples-grid.service-items .p-service-example-item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .p-service-examples-grid.gallery-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .p-service-examples-grid.gallery-items .p-service-example-item img {
        height: 180px;
    }

    .service-item-title {
        font-size: 1.1rem;
    }

    .service-item-description {
        font-size: 0.9rem;
        line-height: 1.6;
        padding: 0 5px;
    }
}

@media screen and (max-width: 480px) {
    .p-service-examples-grid.gallery-items {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* 業務内容一覧セクションのスタイル
================================================ */
.p-service-list-intro {
    background-color: #f9f9f9;
}

.p-service-list-intro .p-service-title {
    text-align: center;
}

.p-service-list-intro .p-service-title::after {
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
}

.p-service-list-intro .p-service-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

/* サービスアイテムのアイコン */
.service-item-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(42, 93, 31, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.service-item-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(0) saturate(100%) invert(25%) sepia(33%) saturate(1048%) hue-rotate(90deg) brightness(92%) contrast(89%);
}

.p-service-example-item:hover .service-item-icon {
    background-color: rgba(42, 93, 31, 0.25);
    transform: scale(1.05);
}

.p-service-example-item:hover .service-item-icon img {
    filter: brightness(0) saturate(100%) invert(25%) sepia(33%) saturate(1048%) hue-rotate(90deg) brightness(92%) contrast(89%);
}

.service-item-title {
    font-size: 1.3rem;
    color: #2a5d1f;
    margin-bottom: 15px;
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    line-height: 1.4;
    text-align: center;
    font-weight: 500;
}

.service-item-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
    text-align: center;
}

/* カテゴリー別のアイコン色設定 */
#category-1 .service-item-icon {
    background-color: rgba(60, 142, 47, 0.15);
    border: 2px solid rgba(42, 93, 31, 0.1);
}

#category-1 .p-service-example-item:hover .service-item-icon {
    background-color: rgba(60, 142, 47, 0.25);
    border-color: rgba(42, 93, 31, 0.2);
}

#category-2 .service-item-icon {
    background-color: rgba(50, 150, 70, 0.15);
    border: 2px solid rgba(60, 142, 47, 0.1);
}

#category-2 .p-service-example-item:hover .service-item-icon {
    background-color: rgba(50, 150, 70, 0.25);
    border-color: rgba(60, 142, 47, 0.2);
}

#category-3 .service-item-icon {
    background-color: rgba(74, 169, 66, 0.15);
    border: 2px solid rgba(74, 169, 66, 0.1);
}

#category-3 .p-service-example-item:hover .service-item-icon {
    background-color: rgba(74, 169, 66, 0.25);
    border-color: rgba(74, 169, 66, 0.2);
}

#category-4 .service-item-icon {
    background-color: rgba(30, 120, 40, 0.15);
    border: 2px solid rgba(30, 120, 40, 0.1);
}

#category-4 .p-service-example-item:hover .service-item-icon {
    background-color: rgba(30, 120, 40, 0.25);
    border-color: rgba(30, 120, 40, 0.2);
}

#category-5 .service-item-icon {
    background-color: rgba(60, 160, 80, 0.15);
    border: 2px solid rgba(60, 160, 80, 0.1);
}

#category-5 .p-service-example-item:hover .service-item-icon {
    background-color: rgba(60, 160, 80, 0.25);
    border-color: rgba(60, 160, 80, 0.2);
}

#category-6 .service-item-icon {
    background-color: rgba(70, 140, 60, 0.15);
    border: 2px solid rgba(70, 140, 60, 0.1);
}

#category-6 .p-service-example-item:hover .service-item-icon {
    background-color: rgba(70, 140, 60, 0.25);
    border-color: rgba(70, 140, 60, 0.2);
}

/* カテゴリーナビゲーション */
.p-service-navigation {
    background-color: #f9f9f9;
}

.p-service-category-nav {
    margin: 40px 0;
    position: relative;
    text-align: center;
}

.p-service-category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.p-service-category-list li {
    margin-bottom: 10px;
}

.p-service-category-list a {
    display: inline-block;
    padding: 12px 25px;
    color: #2a5d1f;
    font-size: 1.1rem;
    text-decoration: none;
    border: 1px solid #2a5d1f;
    border-radius: 30px;
    transition: all 0.3s ease;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.p-service-category-list a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #2a5d1f;
    transition: all 0.4s ease;
    z-index: -1;
}

.p-service-category-list a:hover {
    color: #fff;
    box-shadow: 0 4px 8px rgba(42, 93, 31, 0.2);
    transform: translateY(-2px);
}

.p-service-category-list a:hover::before {
    left: 0;
}

/* お問い合わせセクション */
.p-service-contact {
    background-color: #f3f7f2;
    text-align: center;
}

.p-service-contact .p-service-text {
    max-width: 800px;
    margin: 0 auto;
}

.p-service-contact .p-service-title {
    text-align: center;
}

.p-service-contact .p-service-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.p-service-contact-btn {
    margin-top: 40px;
    text-align: center;
}

.p-service-contact-btn .c-btn {
    display: inline-block;
    padding: 18px 50px;
    background-color: #2a5d1f;
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(42, 93, 31, 0.2);
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.p-service-contact-btn .c-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #2a5d1f, #3a8f2b);
    z-index: -1;
    transition: all 0.4s ease;
    transform: translateY(100%);
    opacity: 0;
}

.p-service-contact-btn .c-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 93, 31, 0.3);
}

.p-service-contact-btn .c-btn:hover::before {
    transform: translateY(0);
    opacity: 1;
}

/* 季節のお手入れ情報の強化 */
.p-service-season-info {
    background-color: rgba(42, 93, 31, 0.05);
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    border-left: 4px solid rgba(42, 93, 31, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.p-service-season-info:hover {
    background-color: rgba(42, 93, 31, 0.08);
    border-left-color: rgba(42, 93, 31, 0.6);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.p-service-season-title {
    font-size: 1.2rem;
    color: #2a5d1f;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.p-service-season-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #2a5d1f;
    border-radius: 50%;
}

.p-service-season-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.p-service-season-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(42, 93, 31, 0.2);
    line-height: 1.7;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: baseline;
}

.p-service-season-list li:hover {
    padding-left: 5px;
    border-bottom-color: rgba(42, 93, 31, 0.4);
}

.p-service-season-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.p-service-season-list li span {
    display: inline-block;
    font-weight: bold;
    color: #2a5d1f;
    margin-right: 8px;
    min-width: 80px;
}

/* 電話番号表示 */
.p-service-contact-info {
    margin: 30px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.p-service-contact-tel h4 {
    font-size: 1.1rem;
    color: #2a5d1f;
    margin-bottom: 10px;
}

.p-service-tel-number {
    display: block;
    font-size: 2rem;
    color: #2a5d1f;
    font-weight: bold;
    text-decoration: none;
    margin: 10px 0;
    transition: color 0.3s ease;
}

.p-service-tel-number:hover {
    color: #1e4516;
}

.p-service-contact-hours {
    font-size: 0.9rem;
    color: #666;
    margin: 5px 0 0;
}

/* レスポンシブ調整 */
@media screen and (max-width: 768px) {
    .p-service-season-info {
        padding: 20px 15px;
    }
    
    .p-service-season-list li span {
        min-width: auto;
        margin-right: 5px;
        display: block;
        margin-bottom: 5px;
    }
    
    .p-service-season-list li {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* スクロールマージン調整 */
[id] {
    scroll-margin-top: 100px;
}

/* メディアクエリ調整 */
@media screen and (max-width: 1024px) {
    .p-service-category-list {
        gap: 10px;
    }
    
    .p-service-category-list a {
        padding: 8px 20px;
        font-size: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .service-item-title {
        font-size: 1.2rem;
    }
    
    .p-service-category-nav {
        margin: 30px 0;
    }
    
    .p-service-category-list {
        flex-direction: column;
        gap: 8px;
    }
    
    .p-service-category-list li {
        margin-bottom: 0;
        width: 100%;
    }
    
    .p-service-category-list a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px;
    }
}

/* 画像キャプション */
.p-service-image-caption {
    display: none;
}

.p-service-examples-grid.service-items .p-service-example-item {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.p-service-examples-grid.service-items .p-service-example-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(42, 93, 31, 0.1);
}
