/* ===================================
   ペット火葬サービスページ用CSS
   =================================== */

/* 基本設定 */
.pet-service-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: #333;
    line-height: 1.8;
}

/* ページタイトルセクション */
.page-title-section {
    text-align: center;
    padding: 40px 0 20px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #87CEEB;
    display: inline-block;
}

/* ヒーローセクション */
.hero-section {
    margin: 40px 0;
    text-align: center;
}

.hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* サービス特徴 */
.service-features {
    text-align: center;
    margin: 20px 0;
}

.section-subtitle-image {
    text-align: center;
    margin-bottom: 30px;
}

.subtitle-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    display: inline-block;
}

.features-description {
    font-size: 1rem;
    color: #555;
    line-height: 2;
    max-width: 900px;
    margin: 30px auto 0;
}
/*特徴文レスポンシブで出しわけ*/
@media(min-width:961px){
    .features-description-sp{
        display: none;
    }
}
@media(max-width:960px){
    .features-description{
        display: none;
    }
}

/* セクションタイトル */
.section-title {
    font-size: 2rem;
    text-align: center;
    color: #333;
    margin: 60px 0 40px;
    border-bottom: 3px solid #87CEEB;
    display: inline-block;
    width: 100%;
}

/* 料金表 */
.pricing-section {
    text-align: center;
}

.pricing-table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.pricing-table thead {
    background: #005A8D;
    color: #FFF;
}

.pricing-table th {
    padding: 20px 15px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid #FFF;
    white-space: nowrap; /* 自動折り返しを防止、<br>タグのみ有効 */
}

.pricing-table th,
.pricing-table td {
    padding: 18px 15px;
    border: 1px solid #E0E0E0;
    font-size: 0.95rem;
    white-space: nowrap; /* セル内の文字を折り返さない */
}

.pricing-table tbody th {
    white-space: nowrap; /* <br>タグ以外での文字折り返しを防止 */
    writing-mode: horizontal-tb; /* 横書きを明示 */
    text-align: left; /* 左寄せ */
    min-width: 120px; /* 最小幅を設定して1文字ずつの改行を防ぐ */
}

.pricing-table tbody tr:nth-child(even) {
    background: #F8FBFF;
}

.pricing-table tbody tr:hover {
    background: #E6F7FF;
}

.pricing-note {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
    margin: 20px auto 0 0; /* 中央寄せで固定表示 */
    text-align: left;
    max-width: 900px;
    position: relative; /* スクロールに影響されない固定配置 */
    z-index: 1; /* テーブルより前面に表示 */
}

/* サービスフロー */
.service-flow {
    margin: 80px 0;
}

.flow-image {
    text-align: center;
    margin: 40px 0;
}

.flow-image img {
    max-width: 100%;
    height: auto;
}

.flow-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: #333;
    font-weight: 600;
    margin: 30px 0 15px;
}

.flow-description,
.flow-description-sp {
    text-align: center;
    font-size: 1rem;
    color: #666;
    line-height: 2;
    margin-bottom: 50px;
}

/*フロー説明文レスポンシブで出しわけ*/
@media(min-width:961px){
    .flow-description-sp{
        display: none;
    }
}
@media(max-width:960px){
    .flow-description{
        display: none;
    }
}

.flow-steps {
    display: grid;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.flow-step {
    background: #FFF;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.flow-step-title{
    display: flex;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #87CEEB;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.step-title {
    font-size: 1.3rem;
    color: #333;
    margin-left: 15px;
    font-weight: 600;
}

.step-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
}

/* fairy pet納骨堂 */
.cremation-pricing {
    margin: 30px 0;
}

.cremation-info {
    max-width: 900px;
    margin: 0 auto;
}

.cremation-description {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    margin: 30px 0;
    line-height: 2;
}

.cremation-table-wrapper,
.memorial-table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.image-container{
    margin: auto;
    flex-shrink: 0;
}

.pet-image{
    display: block;
    max-width: 300px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.cremation-container {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
}

.cremation-table,
.memorial-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.cremation-table thead,
.memorial-table thead {
    background: #005A8D;
    color: #FFF;
}

.cremation-table th,
.memorial-table th {
    padding: 20px 15px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid #FFF;
    white-space: nowrap; /* ヘッダーの文字を折り返さない */
}

.cremation-table th,
.memorial-table th,
.cremation-table td,
.memorial-table td {
    padding: 18px 15px;
    border: 1px solid #E0E0E0;
    text-align: center;
    white-space: nowrap; /* セル内の文字を折り返さない */
}

.cremation-table tbody th,
.memorial-table tbody th {
    text-align: left;
    white-space: nowrap; /* <br>タグ以外での文字折り返しを防止 */
    writing-mode: horizontal-tb; /* 横書きを明示 */
    min-width: 120px; /* 最小幅を設定して1文字ずつの改行を防ぐ */
}

.cremation-table tbody tr:nth-child(even),
.memorial-table tbody tr:nth-child(even) {
    background: #F8FBFF;
}

.cremation-note,
.memorial-note {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.8;
    margin: 20px auto 0; /* 中央寄せで固定表示 */
    text-align: left;
    max-width: 900px; /* 最大幅を設定 */
    position: relative; /* スクロールに影響されない固定配置 */
    z-index: 1; /* テーブルより前面に表示 */
}

.memorial-park {
    margin-top: 60px;
}

.memorial-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

/* memorial-titleのレスポンシブ表示制御 */
@media (min-width: 769px) {
    .memorial-title-sp {
        display: none; /* PC版では改行版を非表示 */
    }
}

@media (max-width: 768px) {
    .memorial-title-pc {
        display: none; /* SP版では通常版を非表示 */
    }
}



/* レスポンシブ対応 */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .hero-main-image {
        border-radius: 5px;
    }
    
    .subtitle-logo {
        max-width: 300px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 12px 8px;
        font-size: 0.85rem;
    }
    
    .company-details {
        grid-template-columns: 1fr;
    }
    
    .flow-steps {
        gap: 20px;
    }
    
    .flow-step {
        padding: 20px;
    }
    
    .contact-button,
    .tell-button,
    .footer-contact-button {
        padding: 15px 40px; /* SP版でのpaddingを統一 */
        font-size: 1.2rem; /* PC版と同じフォントサイズに統一 */
    }
    
    /* 納骨堂セクション SP版レイアウト */
    .cremation-table-wrapper,
    .memorial-table-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .image-container {
        width: 100%;
        text-align: center;
    }
    
    .pet-image {
        max-width: 100%;
        width: auto;
        max-height: 250px;
        margin: auto;
    }
    
    .cremation-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .cremation-table,
    .memorial-table {
        min-width: 500px;
    }
    
    /* SP版でcontact-buttonsを縦並びに */
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .pet-service-main {
        padding: 0 15px;
    }
    
    .hero-section {
        margin: 20px 0;
    }
    
    .subtitle-logo {
        max-width: 250px;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 10px 5px;
        font-size: 0.75rem;
    }
    
    .cremation-table th,
    .memorial-table th,
    .cremation-table td,
    .memorial-table td {
        padding: 12px 8px;
        font-size: 0.85rem;
    }
}