/* Additional styles for Family Fitness Care Theme */

/* Testimonial styles */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* アーカイブページ用の広いグリッド */
.archive .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.testimonial-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    padding: 30px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.testimonial-content {
    padding: 25px;
}

.testimonial-meta {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #8b6b4a;
}

.customer-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #8b6b4a;
    margin-bottom: 8px;
}

.customer-info {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 5px;
}

.used-plan {
    font-size: 0.85rem;
    color: #8b6b4a;
    font-weight: 500;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
}

.testimonial-text h4 {
    font-size: 1.1rem;
    color: #8b6b4a;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* ビフォーアフターセクション */
.before-after-section {
    margin: 30px 0;
    padding: 25px;
}

.before-after-images {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: nowrap;
}

/* アーカイブページ用の小さいギャップ */
.archive .before-after-images {
    gap: 0;
}

.ba-image-wrapper {
    flex: 0 1 400px;
    position: relative;
}

/* アーカイブページ用の大きな画像 */
.archive .ba-image-wrapper {
    flex: 0 1 500px;
    max-width: 500px;
}

.ba-label {
    display: block;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #8b6b4a;
    margin-bottom: 10px;
    padding: 8px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ba-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.ba-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #8b6b4a;
    font-weight: bold;
    flex-shrink: 0;
    padding: 0 20px;
    margin-top: 220px;
}

/* トレーニング内容 */
.training-content {
    margin: 25px 0;
    padding: 20px;
    background: #fffbf5;
    border-left: 4px solid #8b6b4a;
    border-radius: 5px;
}

.training-content h4 {
    font-size: 1.1rem;
    color: #8b6b4a;
    margin-bottom: 12px;
}

.training-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* Archive page styles */
.archive-header {
    text-align: center;
    padding: 80px 0 40px;
    background: #ffffff;
}

.archive-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.archive-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.post-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-content {
    padding: 25px;
}

.post-category {
    display: inline-block;
    padding: 5px 15px;
    background-color: #8b6b4a;
    color: #fff;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-title a {
    color: #333;
    text-decoration: none;
}

.post-title a:hover {
    color: #8b6b4a;
}

.post-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

.post-meta {
    font-size: 0.85rem;
    color: #999;
    display: flex;
    gap: 15px;
}

/* Single post styles */
.single-post-header {
    text-align: center;
    padding: 0;
    background: #f8f9fa;
}

.single-post-title {
    font-size: 2.5rem;
    margin: 0;
}

.single-post-meta {
    font-size: 0.95rem;
    color: #666;
}

.single-post-content {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.single-post-content p {
    margin-bottom: 1.5em;
    line-height: 1.8;
}

.single-post-content h2 {
    margin-top: 2em;
    margin-bottom: 1em;
}

.single-post-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

.single-post-content img {
    border-radius: 10px;
    margin: 2em 0;
}

/* Contact form additional styles */
.form-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
}

.form-success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

/* Pricing table enhancements */
.pricing-card.featured {
    border: 3px solid #8b6b4a;
    position: relative;
}

.pricing-card.featured::before {
    content: '人気';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #8b6b4a;
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}


/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    /* 特徴セクション */
    .cards-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    /* FFCプログラム - スライドショー形式 */
    .pricing-grid {
        position: relative;
        display: block;
        overflow: visible;
        height: auto;
        padding-top: 20px;
    }

    .pricing-card {
        display: none;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
    }

    .pricing-card.active {
        display: block;
        opacity: 1;
    }

    .pricing-card.featured::before {
        top: -15px;
        z-index: 10;
    }

    /* インジケーターのドット */
    .pricing-dots {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
    }

    .pricing-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: #ddd;
        transition: background-color 0.3s ease;
        cursor: pointer;
    }

    .pricing-dot.active {
        background-color: #8b6b4a;
        transform: scale(1.2);
    }

    /* 選ばれる理由 */
    .feature-item,
    .feature-item:nth-child(even) {
        flex-direction: column;
        gap: 30px;
    }

    /* お客様の声 */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* お客様の声 - スライドショー形式 */
    .testimonials-grid {
        position: relative;
        display: block;
        overflow: visible;
        height: auto;
    }

    .testimonial-card {
        display: none;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
    }

    .testimonial-card.active {
        display: block;
        opacity: 1;
    }

    .testimonials-dots {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
    }

    .testimonials-dots .pricing-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: #ddd;
        transition: background-color 0.3s ease;
        cursor: pointer;
    }

    .testimonials-dots .pricing-dot.active {
        background-color: #8b6b4a;
        transform: scale(1.2);
    }

    /* コラム - スライドショー形式 */
    .posts-grid {
        position: relative;
        display: block;
        overflow: visible;
        height: auto;
    }

    .post-card {
        display: none;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
    }

    .post-card.active {
        display: block;
        opacity: 1;
    }

    .posts-dots {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
    }

    .posts-dots .pricing-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: #ddd;
        transition: background-color 0.3s ease;
        cursor: pointer;
    }

    .posts-dots .pricing-dot.active {
        background-color: #8b6b4a;
        transform: scale(1.2);
    }

    /* アーカイブページ */
    .archive .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .archive .before-after-images {
        flex-direction: column;
        gap: 20px;
    }

    .archive .ba-arrow {
        transform: rotate(90deg);
        margin-top: 0 !important;
        margin: 10px 0;
    }

    .ba-image-wrapper {
        flex: 0 1 100%;
        max-width: 100%;
    }

    /* CTAボタン */
    .cta-buttons {
        flex-direction: column;
        gap: 15px !important;
    }

    .btn {
        width: 100%;
        padding: 15px 30px !important;
    }

    /* セクションタイトル */
    .section-title {
        font-size: 1.4rem;
    }

    .archive-title {
        font-size: 2rem;
    }

    /* ヒーローセクション */
    .hero-section {
        min-height: 250px !important;
        max-height: 250px !important;
        padding: 20px 0;
    }

    .hero-section .container {
        flex-direction: column;
        text-align: left;
        gap: 0;
    }

    .hero-content {
        flex: 0 0 0 !important;
        padding: 0;
        text-align: left;
        margin-left: -50px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .hero-title {
        font-size: 1.5rem;
        white-space: normal;
        text-align: left;
        margin-bottom: 0;
    }

    .hero-visual {
        order: -1;
        margin-bottom: -30px;
        display: flex;
        justify-content: flex-end;
        width: 100%;
    }

    .hero-image {
        width: auto !important;
        height: 180px !important;
        max-width: 100%;
        margin: 0 0 0 auto;
    }

    /* イントロセクション */
    .intro-text {
        font-size: 0.95rem;
    }

    .intro-text br {
        display: block;
    }

    .intro-highlight {
        font-size: 0.9rem;
        display: block;
        margin: 10px 0;
    }

    /* どんな方におすすめか */
    section p[style*="font-size: 1.1rem"] {
        font-size: 0.95rem !important;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    /* タブレット対応 */
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-item {
        gap: 40px;
    }

    .archive .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ドットを非表示 */
    .pricing-dots,
    .testimonials-dots,
    .posts-dots {
        display: none;
    }
}

@media screen and (min-width: 1025px) {
    /* デスクトップではドットを非表示 */
    .pricing-dots,
    .testimonials-dots,
    .posts-dots {
        display: none;
    }
}

/* Loading animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .cta-buttons,
    .btn {
        display: none;
    }

    .container {
        max-width: 100%;
    }
}
