@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@1,600&display=swap');

/*
 * cemetery-test.css - 霊園用（練習・検証）
 * 単一・アーカイブ・タクソノミーで使用
 */

/* ========================================
   1. 基本設定・ユーティリティ
======================================== */

/* 霊園ページではSWELLヘッダーを非表示 */
.single-cemetery .l-header,
.archive.post-type-archive-cemetery .l-header,
.tax-region .l-header {
    display: none;
}

/* 共通セクションタイトル */
.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #1f1f1f;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: none;
}

.section-title-with-icon {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: #ed6103;
    margin-bottom: 24px;
}

.title-icon {
    font-size: 24px;
    margin-right: 8px;
}

.section-title-with-border {
    font-size: 20px;
    font-weight: bold;
    color: #1f1f1f;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: none;
}

/* 共通ボタン */
.detail-button-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.detail-button {
    display: flex;
    align-items: center;
    border: 1px solid #d2d2d2;
    border-radius: 50px;
    padding: 10px 16px;
    text-decoration: none;
    transition: border-color 0.3s;
}

.detail-button:hover {
    border-color: transparent;
}

.arrow-icon {
    color: #797979;
    font-size: 20px;
    margin-right: 10px;
}

.button-text {
    color: #1f1f1f;
    font-size: 16px;
}

.read-more-button,
.show-more-button {
    display: inline-block;
    padding: 10px 32px;
    border: 1px solid #d2d2d2;
    border-radius: 4px;
    background-color: #fff;
    color: #1f1f1f;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.read-more-button:hover,
.show-more-button:hover {
    border-color: transparent;
    color: #ed6103;
}

.show-more-button {
    border-radius: 50px;
    padding: 12px 32px;
}

/* 共通情報グリッド */
.info-grid {
    display: grid;
    grid-template-columns: 95px 1fr;
    gap: 1px;
    border-radius: 4px;
    overflow: hidden;
}

.info-grid .info-label,
.grid-label {
    padding: 12px;
    font-weight: bold;
    font-size: 14px;
    color: #1f1f1f;
    background-color: #f5f5f5;
}

.info-content,
.grid-content {
    background-color: #fff;
    padding: 12px;
    font-size: 14px;
    color: #1f1f1f;
    line-height: 1.6;
}

/* 共通情報行 */
.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #1f1f1f;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    color: #797979;
    width: 160px;
    flex-shrink: 0;
}

.info-value {
    flex: 1;
}

/* ========================================
   2. ヘッダー・ナビゲーション
======================================== */

.site-header {
    position: relative;
    z-index: 10;
}

.site-header-bar {
    background-color: #db772d;
    padding: 10px 0 0;
    border-bottom: 2px solid #ddd;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 5px;
}

.site-logo img {
    width: 80px;
    height: auto;
}

.site-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 4px;
    color: #fff;
}

.site-tagline {
    font-size: 12px;
    line-height: 1.2;
}

.site-name {
    font-size: 25px;
    font-weight: bold;
    line-height: 1.2;
}

/* パンくずナビゲーション */
.site-breadcrumbs {
    position: relative;
    z-index: 11;
    background: #fff;
    padding: 8px 12px;
    font-size: 12px;
}

/* ========================================
   3. コンテンツセクション（霊園）
======================================== */

/* --- 写真スライダー --- */
.cemetery-top-photos {
    position: relative;
    margin-bottom: 20px;
}

.cemetery-photos-swiper {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.cemetery-photos-swiper .swiper-wrapper {
    display: flex;
    transition-property: transform;
}

.cemetery-photos-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.cemetery-photos-swiper .top-photo-item {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #353535;
    overflow: hidden;
}

.cemetery-photos-swiper .top-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.cemetery-photos-swiper .photo-caption {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    margin: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 12px;
    z-index: 10;
}

.cemetery-photos-swiper .swiper-button-prev,
.cemetery-photos-swiper .swiper-button-next {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    color: #333;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cemetery-photos-swiper .swiper-button-prev:after,
.cemetery-photos-swiper .swiper-button-next:after {
    font-size: 18px;
    font-weight: bold;
}

.cemetery-photos-swiper .swiper-button-prev {
    left: 10px;
}

.cemetery-photos-swiper .swiper-button-next {
    right: 10px;
}

/* --- ヒーローセクション --- */
.cemetery-name-kana {
    font-size: 12px;
    color: #1f1f1f;
    font-weight: bold;
}

.cemetery-title {
    font-size: 18px;
    color: #1f1f1f;
}

.cemetery-name {
    font-size: 18px;
    font-weight: bold;
    color: #1f1f1f;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: none;
}

/* 口コミサマリー */
.cemetery-review-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #333;
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-stars .star-full {
    color: #ed6103;
}

.review-stars .star-half {
    color: #ed6103;
}

.review-stars .star-empty {
    color: #ccc;
}

.review-average {
    font-size: 12px;
    color: #ed6103;
}

/* --- 販売概要セクション --- */
.sales-summary {
    margin: 40px 0;
}

.summary-box {
    border: 1px solid #d2d2d2;
    border-radius: 4px;
    padding: 20px 16px;
    margin-bottom: 16px;
}

/* 価格カード */
.price-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.price-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.grave-type {
    font-size: 16px;
    color: #1f1f1f;
    margin-bottom: 4px;
}

.price {
    color: #ed6103;
    font-size: 15px;
    line-height: 1;
}

.price .amount {
    font-weight: bold;
    font-size: 22px;
}

.price .unit {
    color: #333;
    font-size: 13px;
}

.divider {
    height: 50px;
    width: 2px;
    background-color: #e0e0e0;
    flex-shrink: 0;
}

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

.map-button-wrapper {
    margin-top: 12px;
}

.map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid #d2d2d2;
    border-radius: 4px;
    text-decoration: none;
    color: #1f1f1f;
    font-size: 14px;
    transition: border-color 0.3s;
}

.map-button:hover {
    border-color: transparent;
}

.map-icon {
    margin-right: 6px;
    font-size: 16px;
}

/* --- 特徴セクション --- */
.cemetery-features-section {
    margin: 40px 0;
    padding: 24px;
    background-color: #fff;
}

.feature-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.feature-item-hidden {
    display: none;
}

.feature-item:last-of-type {
    margin-bottom: 16px;
}

.feature-title {
    font-size: 16px;
    font-weight: bold;
    color: #1f1f1f;
    margin-bottom: 16px;
    padding-left: 12px;
}

.feature-image {
    margin-bottom: 16px;
    border-radius: 4px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-description {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

.read-more-wrapper {
    text-align: center;
    margin-top: 16px;
}

.no-features {
    text-align: center;
    color: #999;
    padding: 40px 0;
}

/* プランカード */
.plan-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
}

.plan-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.plan-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    gap: 16px;
}

.plan-card-info-section {
    flex: 1;
}

.plan-card-title {
    font-size: 16px;
    font-weight: bold;
    color: #1f1f1f;
    margin: 0 0 8px 0;
}

.plan-card-price {
    margin-bottom: 8px;
}

.plan-card .price-amount {
    font-size: 20px;
    font-weight: bold;
    color: #e01010;
}

.plan-card .price-unit {
    font-size: 12px;
    color: #666;
}

.price-confirm {
    font-size: 18px;
    font-weight: bold;
    color: #e01010;
}

.plan-card-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: #fff8e1;
    color: #f57c00;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.plan-card-annual-fee {
    font-size: 13px;
    color: #666;
}

.plan-card-image {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.plan-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plan-card-footer {
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    text-align: right;
}

.plan-card-link {
    color: #1976d2;
    font-size: 14px;
}

/* --- 費用セクション --- */
.cost-section {
    margin: 40px 0;
    padding: 24px;
}

.cost-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.cost-tab {
    padding: 10px 16px;
    border: 2px solid #d2d2d2;
    border-radius: 20px;
    background-color: #fff;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.cost-tab:hover {
    border-color: transparent;
    color: #333;
}

.cost-tab.active {
    background-color: #fff;
    color: #1f1f1f;
    border-color: transparent;
    font-weight: bold;
}

.cost-tab.disabled {
    color: #ccc;
    border-color: #e0e0e0;
    cursor: not-allowed;
    pointer-events: none;
}

.plan-type-section {
    margin-bottom: 32px;
}

.plan-type-title {
    font-size: 18px;
    font-weight: bold;
    color: #1f1f1f;
    margin-bottom: 16px;
}

.show-more-wrapper {
    text-align: center;
    margin: 24px 0;
}

.no-plans {
    text-align: center;
    color: #999;
    padding: 40px 0;
}

/* --- 口コミセクション --- */
.reviews-section {
    margin: 40px 0;
}

.review-card {
    background-color: #FFFBF7;
    border: 1px solid #f0e2d5;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.review-header p {
    font-size: 16px;
    font-weight: bold;
    color: #4a4a4a;
    border-bottom: 1px dashed #e0d0c0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.review-rating-value {
    color: #333;
    font-weight: bold;
    margin-left: 8px;
}

.review-content {
    position: relative;
    max-height: 150px;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.review-content.expanded {
    max-height: 2000px;
}

.review-section-title {
    font-size: 15px;
    font-weight: bold;
    color: #ed6103;
    margin: 20px 0 8px;
}

.review-content .review-section-title:first-child {
    margin-top: 0;
}

.review-description {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

.review-toggle-wrapper {
    text-align: center;
    margin-top: 15px;
}

.review-toggle-wrapper a {
    display: inline-block;
    padding: 6px 24px;
    border: 1px solid #068bf1;
    border-radius: 20px;
    color: #068bf1;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s;
}

.review-toggle-wrapper a:hover {
    background-color: #068bf1;
    color: #fff;
}

.review-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 251, 247, 0) 0%, rgba(255, 251, 247, 1) 100%);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s;
}

.review-content.expanded .review-gradient {
    opacity: 0;
}

/* --- FAQセクション（霊園詳細ページ用） --- */
.cemetery-faq-section {
    margin: 40px 0;
}

.cemetery-faq-item {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
}

.cemetery-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px;
    gap: 10px;
    background: none;
    border: none;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
}

.cemetery-faq-q {
    color: #f60;
}

.cemetery-faq-text {
    flex: 1;
    text-align: left;
    font-weight: bold;
    margin-right: 8px;
}

.cemetery-faq-icon {
    margin-left: auto;
    font-size: 20px;
    font-weight: bold;
}

.cemetery-faq-answer {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    max-height: 0;
    overflow: hidden;
    padding: 0 8px;
    background: #fff;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.cemetery-faq-answer.open {
    max-height: 1500px;
    padding: 16px;
}

.cemetery-faq-a {
    color: #1a73e8;
    font-weight: bold;
    margin-right: 6px;
    flex-shrink: 0;
}

.cemetery-faq-answer-body {
    flex: 1;
    min-width: 0;
    text-align: left;
}

/* --- 施工事例セクション --- */
.construction-cases-section {
    margin: 40px 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.case-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.case-image {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #f0f0f0;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(237, 97, 3, 0.9);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
}

.case-body {
    padding: 15px;
}

.case-title {
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: #333;
    line-height: 1.4;
}

.case-plan {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.case-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    text-align: right;
}

.case-link {
    font-size: 13px;
    color: #068bf1;
    text-decoration: none;
    font-weight: bold;
}

.case-link:after {
    content: ' »';
}

.case-comparison {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.comp-item {
    flex: 1;
    text-align: center;
}

.comp-item span {
    display: block;
    font-size: 11px;
    background: #666;
    color: #fff;
    margin-bottom: 4px;
}

.comp-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid #ddd;
}

/* --- 霊園詳細・タグ付き情報グリッド --- */
.cemetery-info-container {
    max-width: 800px;
    margin: 20px auto;
    font-family: sans-serif;
}

.cemetery-info-container .info-title {
    font-size: 20px;
    font-weight: bold;
    border-bottom: none;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.cemetery-info-container .info-grid {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1px;
    background-color: #e0e0e0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.grid-content.tag-flex,
.tag-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.info-tag {
    flex: 0 0 calc(50% - 4px);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    color: #999;
}

.tag-flex .info-tag.tag-active {
    border: 1px solid #FF9738 !important;
    background-color: #fff6ef !important;
    color: #333 !important;
}

/* ========================================
   4. アーカイブ・一覧ページ
======================================== */

.archive-hero {
    background: #f5f5f5;
    padding: 40px 20px;
    text-align: center;
}

.archive-title {
    font-size: 28px;
    font-weight: bold;
    color: #1f1f1f;
    margin-bottom: 10px;
}

.archive-description {
    font-size: 14px;
    color: #666;
}

.result-count {
    margin: 20px 0;
    text-align: center;
}

.result-count p {
    font-size: 14px;
    color: #666;
}

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

.cemetery-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* 霊園カード */
.cemetery-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cemetery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cemetery-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 写真スクロール */
.cemetery-card-photos {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    background: #f0f0f0;
}

.photo-scroll-wrapper {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    container-type: inline-size;
}

.photo-scroll-wrapper::-webkit-scrollbar {
    height: 6px;
}

.photo-scroll-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.photo-scroll-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    height: 100%;
    gap: 8px;
    align-items: center;
    padding-right: 8px;
}

.photo-scroll-item {
    flex: 0 0 auto;
    width: calc((100cqw - 32px) / 2.1);
    aspect-ratio: 1 / 1;
}

.photo-scroll-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cemetery-card-photos .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    color: #999;
    font-size: 18px;
    font-weight: bold;
}

/* サムネイル（旧スタイル） */
.cemetery-card-thumbnail {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #353535;
}

.cemetery-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cemetery-card-thumbnail .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #999;
    font-size: 14px;
}

/* コンテンツ */
.cemetery-card-content {
    padding: 16px;
}

.cemetery-card-kana {
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
}

.cemetery-card-title {
    font-size: 16px;
    font-weight: bold;
    color: #1f1f1f;
    margin-bottom: 8px;
    line-height: 1.4;
}

.cemetery-card-address {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.address-icon {
    font-size: 14px;
}

.cemetery-card-station {
    font-size: 13px;
    color: #666;
    margin: 4px 0;
}

.station-icon {
    margin-right: 4px;
}

/* レビュー */
.cemetery-card-review {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    font-size: 13px;
}

.cemetery-card-review .review-stars {
    display: flex;
    gap: 1px;
}

.cemetery-card-review .star-full {
    color: #ed6103;
}

.cemetery-card-review .star-half {
    color: #ed6103;
}

.cemetery-card-review .star-empty {
    color: #ccc;
}

.cemetery-card-review .review-average {
    color: #ed6103;
    font-weight: bold;
    margin-left: 4px;
}

.cemetery-card-review .review-count {
    color: #999;
}

/* 価格 */
.cemetery-card-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 14px;
}

.cemetery-card-price .price-label {
    font-size: 11px;
    color: #666;
}

.cemetery-card-price .price-amount {
    font-size: 20px;
    font-weight: bold;
    color: #ed6103;
}

.cemetery-card-price .price-unit {
    font-size: 12px;
    color: #666;
}

.cemetery-card-prices {
    margin: 12px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid #e0e0e0;
}

.price-row:last-child {
    border-bottom: none;
}

.type-name {
    font-size: 13px;
    color: #666;
}

.price-row .price-amount {
    font-size: 15px;
    font-weight: bold;
    color: #ff6b6b;
}

.price-row .price-unit {
    font-size: 11px;
    font-weight: normal;
}

/* バッジ */
.cemetery-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    border: 1px solid;
    background: white;
}

.badge-label {
    margin-right: 4px;
    font-weight: 600;
}

.badge-cemetery {
    border-color: #4CAF50;
    color: #4CAF50;
}

.badge-religion {
    border-color: #2196F3;
    color: #2196F3;
}

.badge-pet {
    border-color: #FF9800;
    color: #FF9800;
}

.badge-successor {
    border-color: #9C27B0;
    color: #9C27B0;
}

/* アクション */
.cemetery-card-actions {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #e0e0e0;
}

.btn-request,
.btn-detail {
    flex: 1;
    padding: 10px 14px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
}

.btn-request {
    background: #ff9800;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-request:hover {
    background: #f57c00;
}

.btn-detail {
    background: white;
    color: #2196F3;
    border: 2px solid #2196F3;
}

.btn-detail:hover {
    background: #e3f2fd;
}

/* 投稿がない場合 */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* ページネーション */
.archive-pagination {
    margin: 40px 0;
    text-align: center;
}

.archive-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.archive-pagination .page-numbers:hover {
    background: #ed6103;
    color: #fff;
    border-color: transparent;
}

.archive-pagination .page-numbers.current {
    background: #ed6103;
    color: #fff;
    border-color: transparent;
}

/* ========================================
   5. フッター（霊園）
======================================== */

.site-footer-logo {
    background-color: #ffe2c8;
    padding: 16px 12px;
    text-align: center;
}

.site-footer-logo p {
    font-size: 12px;
    margin-top: 8px;
    text-align: left;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.site-footer-links .footer-link-item {
    display: flex;
    justify-content: center;
    width: 50%;
}

.site-footer-links .footer-link-item-last-odd {
    width: 100%;
}

.site-footer-links a {
    width: 100%;
    text-decoration: none;
}

.site-footer-links .footer-link-item > a > div {
    background-color: #ed6103;
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 30px 0;
}

.site-footer > p:last-child,
.site-footer-copyright {
    font-size: 12px;
    text-align: center;
    margin-top: 8px;
}

/* ========================================
   7. モーダル・アコーディオン
======================================== */

.plan-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.plan-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.plan-modal-content {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10000;
}

.plan-modal-body {
    padding: 24px;
}

.plan-modal-image {
    text-align: center;
    margin-bottom: 24px;
}

.plan-modal-image img {
    max-width: 80%;
    height: auto;
    border-radius: 4px;
}

.plan-modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #1f1f1f;
    text-align: center;
    margin: 0 0 12px 0;
}

.plan-modal-price {
    font-size: 20px;
    font-weight: bold;
    color: #e01010;
    text-align: center;
    margin: 0 0 16px 0;
}

.plan-modal-feature {
    font-size: 16px;
    color: #555;
    text-align: center;
    margin: 0 0 24px 0;
    white-space: pre-line;
}

.plan-modal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.plan-modal-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.plan-modal-table tr:last-child {
    border-bottom: none;
}

.plan-modal-table td {
    padding: 12px 0;
    vertical-align: top;
}

.plan-modal-table td.label {
    color: #888;
    width: 120px;
}

.plan-modal-footer {
    padding: 16px 24px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.modal-close-button {
    padding: 10px 32px;
    border: none;
    border-radius: 4px;
    background-color: #1976d2;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close-button:hover {
    background-color: #1565c0;
}

/* ========================================
   8. モバイル固定CTA
======================================== */

.mobile-fixed-cta {
    display: none;
}

.fixed-footer-cta {
    display: none;
}

/* ========================================
   9. Contact Form 7（霊園）
======================================== */

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

.wpcf7 textarea {
    min-height: 150px;
}

.wpcf7 label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.wpcf7 input[type="submit"] {
    background: #333;
    color: #fff;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.wpcf7 input[type="submit"]:hover {
    opacity: 0.8;
}

/* グループブロック角丸 */
.is-rounded-box {
    border-radius: 20px !important;
    overflow: hidden !important;
    border: none !important;
}

.is-rounded-box > .wp-block-group__inner-container,
.is-rounded-box.wp-block-group {
    border-radius: 20px !important;
}

/* 無料ラベル */
.btn-free-label .swell-block-button__link {
    position: relative !important;
    padding-left: 55px !important;
    overflow: visible !important;
}

.btn-free-label .swell-block-button__link::before {
    content: "" !important;
    position: absolute !important;
    left: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    background-color: #fff !important;
    border-radius: 50% !important;
    z-index: 1 !important;
}

.btn-free-label .swell-block-button__link::after {
    content: "無料" !important;
    position: absolute !important;
    left: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.8rem !important;
    font-weight: bold !important;
    line-height: 1 !important;
    z-index: 2 !important;
    color: #00a0c6 !important;
}

/* ========================================
   10. レスポンシブ対応（霊園）
======================================== */

@media (max-width: 768px) {
    .site-breadcrumbs {
        font-size: 12px;
        margin-top: 4px;
    }

    .cemetery-photos-swiper .swiper-button-prev,
    .cemetery-photos-swiper .swiper-button-next {
        width: 30px;
        height: 30px;
    }

    .cemetery-photos-swiper .swiper-button-prev:after,
    .cemetery-photos-swiper .swiper-button-next:after {
        font-size: 14px;
    }

    .cemetery-photos-swiper .swiper-button-prev {
        left: 5px;
    }

    .cemetery-photos-swiper .swiper-button-next {
        right: 5px;
    }

    .section-title {
        font-size: 16px;
        margin-top: 40px;
    }

    .section-title-with-icon {
        font-size: 18px;
    }

    .title-icon {
        font-size: 20px;
    }

    .section-title-with-border {
        font-size: 18px;
    }

    .summary-box {
        padding: 20px 16px;
    }

    .price-card {
        padding: 0 15px;
    }

    .grave-type {
        font-size: 14px;
    }

    .price .amount {
        font-size: 20px;
    }

    .price .unit {
        font-size: 10px;
    }

    .divider {
        height: 40px;
    }

    .info-row {
        margin-bottom: 0;
    }

    .detail-button-wrapper {
        margin-bottom: 48px;
    }

    .info-grid {
        grid-template-columns: 80px 1fr;
    }

    .info-grid .info-label,
    .info-content {
        font-size: 13px;
        padding: 10px;
    }

    .cemetery-features-section {
        padding: 16px;
    }

    .feature-item {
        padding: 16px;
    }

    .feature-title {
        font-size: 15px;
    }

    .feature-description {
        font-size: 13px;
    }

    .plan-card-body {
        padding: 12px;
        gap: 12px;
    }

    .plan-card-title {
        font-size: 14px;
    }

    .plan-card .price-amount {
        font-size: 18px;
    }

    .plan-card .price-unit {
        font-size: 11px;
    }

    .plan-card-image {
        width: 100px;
        height: 70px;
    }

    .plan-card-footer {
        padding: 10px 12px;
    }

    .cost-section {
        padding: 16px;
    }

    .cost-tab {
        font-size: 13px;
        padding: 8px 12px;
    }

    .plan-type-title {
        font-size: 16px;
    }

    .plan-modal-content {
        width: 95%;
    }

    .plan-modal-body {
        padding: 16px;
    }

    .plan-modal-title {
        font-size: 16px;
    }

    .plan-modal-price {
        font-size: 18px;
    }

    .plan-modal-feature {
        font-size: 14px;
    }

    .plan-modal-table td.label {
        width: 100px;
    }

    .review-card {
        padding: 16px;
    }

    .review-header p {
        font-size: 14px;
    }

    .review-section-title {
        font-size: 14px;
    }

    .review-description {
        font-size: 13px;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .cemetery-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .archive-title {
        font-size: 22px;
    }

    .mobile-fixed-cta {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 99999 !important;
        background: rgba(255, 255, 255, 0.7) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        padding: 15px 10px !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
    }

    .mobile-fixed-cta .swell-block-richColumn {
        display: flex !important;
        gap: 10px !important;
    }

    .mobile-fixed-cta .swell-block-richColumn__item {
        flex: 1 !important;
        margin-bottom: 0 !important;
    }

    .fixed-footer-cta {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 99999 !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 0px 0 !important;
        line-height: 0 !important;
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s ease;
    }

    .fixed-footer-cta.is-active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    .fixed-footer-cta .wp-block-columns {
        display: flex !important;
        flex-direction: row !important;
        gap: 0px !important;
        margin: 0 !important;
        align-items: flex-end !important;
    }

    .fixed-footer-cta .wp-block-column {
        flex: 1 !important;
        margin: 0 !important;
    }

    .fixed-footer-cta img {
        width: 100% !important;
        height: auto !important;
        margin-bottom: 0 !important;
        display: block !important;
        filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
    }
}

@media (min-width: 960px) {
    .mobile-fixed-cta,
    .fixed-footer-cta {
        display: none !important;
    }
}
