/* ================================
   Cemetery Post Template Styles
   ================================ */

/* 基本設定 */
.cemetery_post {
    line-height: 1.6;
    color: #333;
}

.cemetery_post .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================
   キャッチコピーセクション
   ================================ */
.catch-section {
    color: #333;
    text-align: center;
    padding: 60px 0;
    margin-bottom: 0;
}

.intro-catch {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 1px 10px rgb(255 183 77 / 70%);
    color: #666;
}

@media (max-width: 768px) {
    .catch-section { 
        padding: 40px 0;
    }

    .intro-catch { 
        font-size: 2.5rem; 
    }
}

/* ================================
   写真ギャラリーセクション
   ================================ */
.photo-gallery {
    padding: 60px 0;
}

.photo-slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
}

.photo-swiper {
    width: 100%;
    height: 500px;
    overflow: visible;
    padding: 0 60px; /* ナビゲーションボタン用のスペース */
}

.swiper-wrapper {
    align-items: center; 
}

.swiper-slide {
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: auto;
}

.photo-item {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden
}

.photo-item img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 8px;
}

/* モバイル表示（768px以下） */
@media (max-width: 768px) {
    .photo-swiper {
        padding: 0 20px;
        height: 300px;
    }

    .photo-item img {
        height: 280px;
    }

    .swiper-slide {
        transform: scale(1) !important;
        opacity: 1 !important;
    }
}

/* PC表示（769px以上）での3枚表示とセンター拡大設定 */
@media (min-width: 769px) {
    /* デフォルト状態（サイドスライド） */
    .swiper-slide {
        transform: scale(0.8);
        opacity: 0.6;
    }

    .swiper-slide .photo-item img { 
        height: 320px;
    }

    /* 中央の拡大は Swiper 標準クラスを優先 */
    .swiper-slide-active,
    .swiper-slide.is-center {
        transform: scale(1.15) !important;
        opacity: 1 !important;
        z-index: 2;
    }

    .swiper-slide-active .photo-item,
    .swiper-slide.is-center .photo-item {
        box-shadow: 0 12px 30px rgba(0,0,0,0.25) !important;
    }

    .swiper-slide-active .photo-item img,
    .swiper-slide.is-center .photo-item img {
        height: 450px !important;
    }

    /* 隣接するスライド */
    .swiper-slide-next,
    .swiper-slide-prev {
        transform: scale(0.85);
        opacity: 0.8;
    }
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    background: white !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    margin-top: -22px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    border: 2px solid #ff9800 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 12px !important;
    font-weight: bold !important;
    color: #ff9800 !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #ff9800 !important;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4) !important;
}

.swiper-button-next:hover:after,
.swiper-button-prev:hover:after { 
    color: white !important;
}

/* 矢印の位置を微調整 */
.swiper-button-next:after {
    margin-left: 1px !important;
}
.swiper-button-prev:after { 
    margin-right: 1px !important; 
}

.swiper-pagination-bullet { 
    background: white;
    opacity: 0.5; 
}
.swiper-pagination-bullet-active {
    opacity: 1;
    background: #ff9800;
}

@media (max-width: 768px) {
    .photo-gallery { 
        padding: 40px 0; 
    }

    .photo-swiper { 
        height: 300px;
        padding: 0 20px; 
    }

    .photo-item img { 
        height: 300px; 
    }

    .swiper-button-next,
    .swiper-button-prev { 
        width: 40px;
        height: 40px;
        margin-top: -20px; 
    }

    .swiper-slide .photo-item { 
        transform: scale(1) !important;
        opacity: 1 !important; 
    }

    .photo-item img { 
        height: 300px !important; 
    }
}

/* ================================
   イントロセクション
   ================================ */
.intro-section { 
    padding: 60px 0;
    background: #ffffff8c; 
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.intro-text-sp { 
    display: none; 
}

@media (max-width: 768px) {
    .intro-section { 
        padding: 40px 0; 
    }
    .intro-text-pc {
        display: none;
    }
    .intro-text-sp { 
        display: block; 
    }
    .intro-text { 
        font-size: 1rem;
        text-align: center; 
    }
}

/* ================================
   価格表セクション
   ================================ */
.price-section {
    padding: 60px 0;
}

.price-section h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    position: relative;
}

h1:after ,
h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #ff9800;
    margin: 20px auto 0;
    border-radius: 2px;
}

.price-table-wrapper { 
    padding: 30px; 
}

.price-table-wrapper h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ffe0b3;
}

.price-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 600px;
}

.price-table th {
    background: linear-gradient(135deg, #ffe0b3 0%, #ff9800 100%);
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.price-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #fff3e0;
    font-size: 0.9rem;
}

.price-table tbody tr:hover { 
    background: #f8f9fa; 
}

.price-table tbody tr:last-child td { 
    border-bottom: none; 
}

/* 価格表補足情報 */
.price-table-supplement,
.price-supplement {
    margin: 0 30px 30px;
    background: white;
    border-radius: 8px;
    padding: 25px;
    border-left: 4px solid #ff9800;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.price-table-supplement h4,
.price-supplement h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f57c00;
    margin-bottom: 15px;
}

.supplement-content,
.price-supplement p { 
    line-height: 1.7;
    color: #555;
}

/* 霊園ページボタン */
.cemetery-link-section { 
    text-align: center;
    margin-top: 40px; 
}

.cemetery-link-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffcc80 0%, #ff9800 100%);
    color: white;
    text-decoration: none;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.cemetery-link-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
    color: white;
    text-decoration: none;
}

.button-icon { 
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.cemetery-link-button:hover .button-icon {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .price-section {
        padding: 40px 0; 
    }
    .price-section h2 { 
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .price-table-wrapper {
        padding: 20px;
        margin-bottom: 30px;
    }
    .price-table-wrapper h3 {
        font-size: 1.3rem;
    }
    .price-table th, .price-table td {
        padding: 10px 8px;
        font-size: 0.8rem;
    }
    .cemetery-link-button {
        padding: 15px 25px;
        font-size: 1rem;
    }
}

/* ================================
   施設・設備セクション
   ================================ */
.facility-section {
    padding: 60px 0;
}

.facility-section h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px;
    position: relative;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.facility-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.facility-item:hover {
    border-color: #ffcc80;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 204, 128, 0.3);
}

.facility-name {
    font-weight: 600;
    color: #f57c00;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .facility-section {
        padding: 40px 0;
    }
    .facility-section h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .facility-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    .facility-item {
        padding: 15px;
    }
}

/* ================================
   アクセスセクション
   ================================ */
.access-section {
    padding: 60px 0;
}

.access-section h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px;
    position: relative;
}

.access-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.access-map-area {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-container iframe,
.map-container embed {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

.access-intro-text {
    padding: 30px;
    text-align: center;
    color: #666;
    line-height: 1.6;
}

.access-methods-area {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.access-method {
    margin-bottom: 30px;
}

.access-method:last-child {
    margin-bottom: 0;
}

.access-method h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #f57c00;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #fff3e0;
}

.access-method ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.access-method li {
    padding: 8px 0 8px 20px;
    position: relative;
    line-height: 1.6;
    color: #555;
}

.access-method li:before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #ff9800;
    font-size: 0.8rem;
    top: 10px;
}

@media (max-width: 968px) {
    .access-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .access-section {
        padding: 40px 0;
    }
    .access-section h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .map-container iframe,
     .map-container embed {
        height: 250px;
    }
    .access-methods-area {
        padding: 20px;
    }
    .access-method h3 {
        font-size: 1.1rem;
    }
}

/* ================================
   基本情報セクション
   ================================ */
.basic-info-section {
    padding: 60px 0;
}

.basic-info-section h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px;
    position: relative;
}

.basic-info-table-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #ecf0f1;
}

.basic-info-table {
    width: 100%;
    border-collapse: collapse;
}

.basic-info-table th {
    background: linear-gradient(135deg, #ffe0b3 0%, #ff9800 100%);
    color: white;
    padding: 20px;
    font-weight: 600;
    text-align: left;
    width: 30%;
}

.basic-info-table td {
    padding: 20px;
    background: #fafafa;
    color: #555;
    line-height: 1.6;
}

.basic-info-table tr:not(:last-child) th,
.basic-info-table tr:not(:last-child) td {
    border-bottom: 1px solid #fff3e0;
}

@media (max-width: 768px) {
    .basic-info-section {
        padding: 40px 0;
    }
    .basic-info-section h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .basic-info-table th, 
    .basic-info-table td {
        padding: 15px;
        font-size: 0.9rem;
    }
    .basic-info-table th {
        width: 35%;
    }
}

/* ================================
   全体的なレスポンシブ調整
   ================================ */
@media (max-width: 480px) {
    .cemetery_post .container {
        padding: 0 15px;
    }
    .price-table-wrapper,
     .access-methods-area {
        padding: 15px;
    }
    .price-table th, 
    .price-table td {
        padding: 8px 5px;
        font-size: 0.75rem;
    }
}

/* ================================
   スクロールバーのスタイリング
   ================================ */
.price-table-container::-webkit-scrollbar {
    height: 8px;
}
.price-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.price-table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}
.price-table-container::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}