/**
 * Shimomiya Theme - Service Page Styles
 * サービス紹介ページ専用スタイル
 * Figma準拠 + クラフト感デザイン統一
 *
 * @package Shimomiya
 */

/* ==========================================================================
   Page Hero - 共通ページヒーロー（about.css と同一）
   ========================================================================== */

.page-hero {
    position: relative;
    height: 456px;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle, rgba(211, 91, 71, 0.08) 2px, transparent 2px),
        rgba(0, 0, 0, 0.2);
    background-size: 48px 48px, auto;
}

.page-hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 145px;
}

.page-hero-wave svg {
    width: 100%;
    height: 100%;
}

.page-hero-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-zen);
    font-weight: var(--font-weight-bold);
    font-size: 30px;
    color: var(--color-white);
    text-align: center;
    line-height: 1.7;
    letter-spacing: 2px;
    margin: 0;
    z-index: 2;
    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 0, 0, 0.15);
}

.page-hero-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 0;
    border-bottom: 3px dashed rgba(255, 255, 255, 0.5);
    margin: 18px auto 0;
}

@media (max-width: 768px) {
    .page-hero {
        height: 300px;
    }

    .page-hero-title {
        font-size: 24px;
    }

    .page-hero-title::after {
        width: 60px;
        margin-top: 14px;
    }

    .page-hero-wave {
        height: 80px;
    }
}

/* ==========================================================================
   Anchor Navigation - サービスタブ
   ========================================================================== */

.service-anchor-nav {
    background: #f9f6f4;
    padding: 50px 0 40px;
}

.service-anchor-list {
    display: flex;
    justify-content: center;
    gap: 44px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-anchor-item a {
    display: inline-block;
    font-family: var(--font-zen);
    font-weight: var(--font-weight-bold);
    font-size: 23px;
    color: #3a3937;
    line-height: 38.4px;
    white-space: nowrap;
    padding-bottom: 10px;
    border-bottom: 3px dashed var(--stitch-color-dark);
    transition: color var(--transition-normal), border-color var(--transition-normal);
}

.service-anchor-item a:hover {
    color: #ef7191;
    border-bottom-color: #ef7191;
    opacity: 1;
}

@media (max-width: 991px) {
    .service-anchor-nav {
        padding: 30px 0 25px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .service-anchor-list {
        gap: 24px;
        justify-content: flex-start;
        padding: 0 20px;
        min-width: max-content;
    }

    .service-anchor-item a {
        font-size: 22px;
        line-height: 1.6;
    }
}

@media (max-width: 576px) {
    .service-anchor-nav {
        padding: 20px 0 15px;
    }

    .service-anchor-item a {
        font-size: 22px;
    }
}

/* ==========================================================================
   Service Detail Section
   ========================================================================== */

.service-detail-section {
    background: #f9f6f4;
    padding: 0 0 66px;
}

.service-detail-section:first-of-type {
    padding-top: 0;
}

/* ==========================================================================
   Service Detail Card - 白カードコンテナ
   ========================================================================== */

.service-detail-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 65px 49px 80px;
    box-shadow: var(--shadow-card);
}

/* ==========================================================================
   Facility Header - カテゴリ + 施設名 + ヒーロー画像
   ========================================================================== */

.facility-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.facility-header-text {
    flex: 1;
    padding-top: 20px;
}

.facility-category {
    font-family: var(--font-zen);
    font-weight: var(--font-weight-bold);
    font-size: 22px;
    color: #ef7191;
    letter-spacing: 0.75px;
    line-height: 1.4;
    padding-left: 16px;
    border-left: 3px solid #ef7191;
    margin-bottom: 16px;
}

.facility-name {
    font-family: var(--font-zen);
    font-weight: var(--font-weight-bold);
    font-size: 32px;
    color: #3a3937;
    line-height: 38.4px;
    margin: 0;
}

.facility-header-image {
    width: 586px;
    height: 408px;
    flex-shrink: 0;
}

.facility-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

@media (max-width: 991px) {
    .facility-header {
        flex-direction: column;
    }

    .facility-header-text {
        padding-top: 0;
    }

    .facility-header-image {
        width: 100%;
        height: auto;
        aspect-ratio: 586 / 408;
    }
}

@media (max-width: 768px) {
    .service-detail-card {
        padding: 40px 24px 50px;
    }

    .facility-name {
        font-size: 24px;
        line-height: 1.3;
    }
}

/* ==========================================================================
   Facility Info - 住所・電話・定員等
   ========================================================================== */

.facility-info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.facility-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-zen);
    font-weight: var(--font-weight-bold);
    font-size: 22px;
    color: #483c34;
    letter-spacing: 0.51px;
    background: #fffcf2;
    border: 1px solid #483c34;
    border-radius: 30px;
    padding: 3px 14px;
    line-height: 1;
    transition: all var(--transition-normal);
}

.map-btn:hover {
    background: #483c34;
    color: var(--color-white);
    opacity: 1;
}

.map-btn svg {
    width: 13px;
    height: 13px;
}

.facility-address {
    font-family: var(--font-zen);
    font-weight: 400;
    font-size: 22px;
    color: #393939;
    letter-spacing: 1.306px;
    line-height: 1.7;
    margin: 0;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-zen);
    font-weight: var(--font-weight-bold);
    font-size: 22px;
    color: #3a3937;
    background: #f9ead5;
    border-radius: 4px;
    padding: 3px 12px;
    line-height: 1;
    white-space: nowrap;
}

.info-value {
    font-family: var(--font-zen);
    font-weight: 400;
    font-size: 22px;
    color: #393939;
    letter-spacing: 1.306px;
}

@media (max-width: 768px) {
    .facility-info {
        gap: 8px;
    }

    .facility-address {
        font-size: 22px;
    }

    .info-value {
        font-size: 22px;
    }
}

/* ==========================================================================
   Photo Strip - サムネイル写真列（友の里専用）
   ========================================================================== */

.facility-photos {
    display: flex;
    gap: 28px;
    margin-top: 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.facility-photos img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 4px;
}

@media (max-width: 991px) {
    .facility-photos {
        gap: 16px;
    }

    .facility-photos img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 576px) {
    .facility-photos img {
        width: 100px;
        height: 100px;
    }
}

/* ==========================================================================
   Facility Section Heading - concept / reason
   ========================================================================== */

.facility-section-heading {
    margin-bottom: 30px;
}

.facility-section-en {
    font-family: var(--font-comfortaa);
    font-weight: var(--font-weight-bold);
    font-size: 22px;
    color: #ef7191;
    line-height: 22px;
    margin-bottom: 8px;
}

.facility-section-ja {
    font-family: var(--font-zen);
    font-weight: var(--font-weight-bold);
    font-size: 28px;
    color: #483c34;
    line-height: 51.84px;
    margin: 0;
}

/* ==========================================================================
   Concept Text
   ========================================================================== */

.facility-concept {
    margin-top: 50px;
}

.facility-concept-text {
    margin-top: 20px;
}

.facility-concept-text p {
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 22px;
    color: #333;
    line-height: 2.0;
    margin-bottom: 0;
}

.facility-concept-text p strong {
    font-weight: 700;
}

.facility-concept-text p + p {
    margin-top: 16px;
}

/* Sub-service (day/short/home) smaller text */
.facility-concept-text--sub p {
    font-size: 22px;
    line-height: 2.0;
}

@media (max-width: 768px) {
    .facility-concept-text p {
        font-size: 22px;
        line-height: 1.8;
    }

    .facility-concept-text--sub p {
        font-size: 22px;
        line-height: 1.8;
    }

    .facility-section-ja {
        font-size: 22px;
        line-height: 1.5;
    }
}

/* ==========================================================================
   Feature Blocks - 特徴セクション
   ========================================================================== */

.facility-features {
    margin-top: 60px;
}

.feature-block {
    margin-top: 40px;
}

.feature-block + .feature-block {
    margin-top: 50px;
}

.feature-title {
    font-family: var(--font-zen);
    font-weight: var(--font-weight-bold);
    font-size: 24px;
    color: #ef7191;
    letter-spacing: 1px;
    line-height: 1.4;
    padding-left: 16px;
    border-left: 3px solid #ef7191;
    margin-bottom: 24px;
}

.feature-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.feature-image {
    width: 480px;
    height: 334px;
    flex-shrink: 0;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Slideshow */
.feature-slideshow {
    position: relative;
    overflow: hidden;
}

.feature-slideshow .slideshow-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.feature-slideshow .slideshow-img.active {
    position: relative;
    opacity: 1;
}

.feature-text {
    flex: 1;
}

.feature-text p {
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 22px;
    color: #333;
    line-height: 2.0;
    margin-bottom: 0;
}

/* Sub-service smaller feature text */
.feature-text--sub p {
    font-size: 22px;
    line-height: 2.0;
}

/* Info Box (友の里のトイレ設備情報) */
.feature-info-box {
    margin-top: 20px;
    background: #fffcee;
    border-radius: 15px;
    padding: 20px 24px;
}

.feature-info-box p {
    font-family: var(--font-zen);
    font-weight: 500;
    font-size: 22px;
    color: #483c34;
    letter-spacing: 0.188px;
    line-height: 1.8;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .feature-content {
        flex-direction: column;
        gap: 24px;
    }

    .feature-image {
        width: 100%;
        height: auto;
        aspect-ratio: 480 / 334;
    }

    .feature-text p {
        font-size: 22px;
        line-height: 1.8;
    }

    .feature-text--sub p {
        font-size: 22px;
        line-height: 1.8;
    }
}

@media (max-width: 768px) {
    .facility-features {
        margin-top: 40px;
    }

    .feature-block + .feature-block {
        margin-top: 36px;
    }

    .feature-title {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .feature-text p {
        font-size: 22px;
        line-height: 1.8;
    }

    .feature-text--sub p {
        font-size: 22px;
        line-height: 1.8;
    }

    .feature-info-box {
        padding: 16px 18px;
    }

    .feature-info-box p {
        font-size: 22px;
        line-height: 1.6;
    }
}

/* ==========================================================================
   Contact CTA Section
   ========================================================================== */

.service-contact-section {
    background: #faf4e3;
    position: relative;
    padding: 60px 0 80px;
}

.service-contact-wave {
    position: absolute;
    top: -186px;
    left: 0;
    right: 0;
    height: 187px;
    z-index: 1;
}

.service-contact-wave svg {
    width: 100%;
    height: 100%;
}

.service-contact-inner {
    display: flex;
    gap: 67px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.service-contact-image {
    width: 503px;
    flex-shrink: 0;
    background: var(--color-white);
    padding: 10px;
    box-shadow: var(--shadow-photo);
    border-radius: var(--radius-md);
}

.service-contact-image img {
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius-md) - 6px);
}

.service-contact-content {
    flex: 1;
}

.service-contact-text {
    font-family: var(--font-zen);
    font-weight: var(--font-weight-normal);
    font-size: 22px;
    color: #4f3b17;
    line-height: 2.0;
    letter-spacing: 0.6px;
    margin: 25px 0 30px;
}

@media (max-width: 991px) {
    .service-contact-section {
        padding: 40px 0 60px;
    }

    .service-contact-wave {
        top: -120px;
        height: 121px;
    }

    .service-contact-inner {
        flex-direction: column;
        gap: 30px;
    }

    .service-contact-image {
        width: 100%;
        max-width: 400px;
    }
}
