/* 
 * page-service-detail.css
 * サービス詳細ページ専用スタイル
 */

 .site-main {
    margin-top: 60px;
}

/* ヒーローセクション */
.site-hero-bg {
    position: relative;
    height: 120px;
    min-height: 0;
    padding: 0;
    background-size: cover;
    background-position: center;
    margin-bottom: 40px;
}
  
.site-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
}
  
.site-hero-content {
    text-align: center;
    color: #fff;
    padding: 0 20px;
}
  
.site-hero-content h1 {
    font-size: 36px;
    font-weight: bold;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.site-container {
    padding-top: 0;
}

/* サービス概要セクション */
.service-overview {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
}

.service-tagline {
    font-size: 24px;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.4;
}

.service-tagline p {
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.service-tagline p::before,
.service-tagline p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background-color: var(--primary-color);
}

.service-tagline p::before {
    left: -20px;
}

.service-tagline p::after {
    right: -20px;
}

/* 共通セクションスタイル */
.service-section {
    margin-bottom: 60px;
    background-color: var(--background-white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--secondary-color);
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    border-radius: 2px;
    background-color: var(--primary-color);
}

.service-problem .section-title::before {
    background-color: var(--primary-color);
}

.section-content {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

/* リストタイトルのスタイル */
.list-title {
    font-size: 18px;
    color: var(--secondary-color);
    margin: 20px 0 10px;
    font-weight: 600;
    position: relative;
}

/* 課題セクション */
.problem-list {
    margin: 15px 0 25px;
    padding-left: 25px;
}

.problem-list li {
    margin-bottom: 10px;
    position: relative;
}

.problem-list li::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* 標準リストスタイル */
.standard-list {
    margin: 15px 0 25px;
    padding-left: 25px;
}

.standard-list li {
    margin-bottom: 10px;
    position: relative;
}

.standard-list li::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* キーポイント */
.key-point {
    background-color: #f0f7fb;
    border-left: 5px solid #2E86C1;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.point-title {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-size: 18px;
}

/* サービスフローのスタイル */
.service-flow {
    margin: 30px 0;
}

.flow-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.flow-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 50px;
    width: 2px;
    height: calc(100% - 20px);
    background-color: #e0e0e0;
    z-index: 0;
}

.flow-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 20px;
    margin-right: 20px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.flow-content {
    flex: 1;
}

.flow-content h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* テーブルスタイル */
.service-table-container {
    overflow-x: auto;
    margin: 30px 0;
}

.service-table {
    width: 100%;
    border-collapse: collapse;
}

.service-table th, 
.service-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.service-table th {
    background-color: #f8f8f8;
    font-weight: 600;
    color: #333;
}

.service-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.service-plan-title {
    margin-top: 40px;
}

.service-note {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
    font-style: italic;
}

/* メリットカードのスタイル */
.merit-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.merit-card {
    background-color: var(--background-light);
    border-radius: 8px;
    padding: 30px 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.merit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.merit-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.merit-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    text-align: center;
}

.merit-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.5;
}

/* 導入事例のスタイル */
.case-box {
    background-color: var(--background-light);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.case-box h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.case-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.case-item h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 600;
}

.case-result-list {
    margin: 0;
    padding-left: 20px;
}

.case-result-list li {
    margin-bottom: 5px;
}

.case-box-link {
    text-align: center;
    margin-top: 30px;
}

.service-link-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
    font-weight: 500;
}

.service-link-button:hover {
    background-color: #444;
}

.service-link-button i {
    margin-right: 8px;
}

/* よくある質問スタイル */
.faq-list {
    margin-top: 20px;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: #f8f8f8;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin: 0;
    font-size: 17px;
    color: var(--secondary-color);
}

.faq-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

/* CTAセクション */
.service-cta {
    background-color: var(--background-light);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 40px 30px;
    text-align: center;
    margin-bottom: 60px;
}

.service-cta h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.service-cta p {
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-contact {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 18px;
    transition: background-color 0.3s;
}

.btn-contact:hover {
    background-color: var(--primary-dark);
}

/* 関連サービスセクション */
.service-related {
    margin-bottom: 40px;
}

.related-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.related-service {
    background-color: var(--background-light);
    padding: 25px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.related-service h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.related-service p {
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-more {
    align-self: flex-start;
    display: inline-block;
    padding: 8px 16px;
    background-color: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-more:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 通常表示のFAQスタイル */
.faq-static-list {
    margin-top: 20px;
}

.faq-static-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.faq-static-item:last-child {
    border-bottom: none;
}

.faq-static-item h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.faq-static-item p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .site-main {
        margin-top: 60px;
    }

    .site-hero-bg {
        height: 100px;
    }
      
    .site-hero-content h1 {
        font-size: 28px;
    }
    
    .service-tagline {
        font-size: 20px;
    }

    .service-section {
        padding: 20px;
    }
    
    .case-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .case-item {
        padding-bottom: 15px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .case-item:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .merit-cards {
        grid-template-columns: 1fr;
    }
    
    .related-services {
        grid-template-columns: 1fr;
    }
    
    .service-table th, 
    .service-table td {
        padding: 8px;
        font-size: 14px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .site-main {
        margin-top: 60px;
    }

    .site-hero-bg {
        height: 80px;
    }
      
    .site-hero-content h1 {
        font-size: 24px;
    }
    
    .service-tagline {
        font-size: 18px;
    }
    
    .service-tagline p::before,
    .service-tagline p::after {
        display: none;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .flow-item {
        flex-direction: column;
    }
    
    .flow-number {
        margin-bottom: 15px;
    }
    
    .flow-item:not(:last-child)::after {
        left: 20px;
        top: 40px;
        height: calc(100% - 40px);
    }
}