/* ========================================
   トップページ - 無印良品スタイル
   ======================================== */

/* ========================================
   共通セクションヘッダー
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header--center {
    text-align: center;
}

.section-header__label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: #8B7355;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.section-header__label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background-color: #8B7355;
}

/* ========================================
   サービスセクション
   ======================================== */

.services-section {
    background-color: #FFFFFF;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    position: relative;
    padding: 3rem 2.5rem;
    background-color: #FFFFFF;
    border: 1px solid #E5DDD5;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #8B7355, transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(139, 115, 85, 0.15);
    border-color: #8B7355;
}

.service-card__number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3.5rem;
    font-weight: 200;
    color: #F5F3F0;
    letter-spacing: 0.05em;
    transition: color 0.4s ease;
}

.service-card:hover .service-card__number {
    color: #E5DDD5;
}

.service-card__icon {
    width: 70px;
    height: 70px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B7355;
    font-size: 2.2rem;
    background: linear-gradient(135deg, #F5F3F0 0%, #E5DDD5 100%);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-card__icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #8B7355 0%, #6B5744 100%);
    color: #FFFFFF;
}

.service-card__title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.2rem;
    letter-spacing: 0.08em;
    color: #4A4A4A;
}

.service-card__description {
    color: #6B6B6B;
    line-height: 1.9;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.service-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid #E5DDD5;
}

.service-card__price {
    font-size: 1.2rem;
    font-weight: 500;
    color: #8B7355;
    letter-spacing: 0.05em;
    margin: 0;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #4A4A4A;
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
}

.service-card__link i {
    transition: transform 0.3s ease;
}

.service-card__link:hover {
    color: #8B7355;
}

.service-card__link:hover i {
    transform: translateX(5px);
}

/* ========================================
   お知らせセクション
   ======================================== */

.news-section {
    background-color: #F5F3F0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    position: relative;
    padding: 2rem;
    background-color: #FFFFFF;
    border: 1px solid #E5DDD5;
    text-decoration: none;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: #8B7355;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover::before {
    transform: scaleY(1);
}

.news-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 30px rgba(139, 115, 85, 0.12);
    border-color: #8B7355;
}

.news-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.news-card__date {
    font-size: 0.85rem;
    color: #8B7355;
    letter-spacing: 0.1em;
    font-weight: 300;
}

.news-card__badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: #8B7355;
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    border-radius: 2px;
}

.news-card__category {
    display: inline-block;
    padding: 6px 16px;
    background-color: #F5F3F0;
    color: #6B6B6B;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.news-card__title {
    font-size: 1.1rem;
    font-weight: 400;
    color: #4A4A4A;
    line-height: 1.7;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.news-card__arrow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #8B7355;
    font-size: 0.9rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.news-card:hover .news-card__arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* ========================================
   ブログセクション
   ======================================== */

.blog-section {
    background-color: #FFFFFF;
}

.blog-category-filter {
    text-align: center;
    margin-bottom: 3rem;
}

.category-filter-btn {
    display: inline-block;
    padding: 10px 24px;
    margin: 6px;
    border: 1px solid #8B7355;
    border-radius: 25px;
    background-color: transparent;
    color: #8B7355;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-filter-btn:hover {
    background-color: #F5F3F0;
    transform: translateY(-2px);
}

.category-filter-btn.active {
    background-color: #8B7355;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.25);
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.blog-preview-card {
    position: relative;
    padding: 2.5rem;
    background-color: #FFFFFF;
    border: 1px solid #E5DDD5;
    text-decoration: none;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.blog-preview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(139, 115, 85, 0.15);
    border-color: #8B7355;
}

.blog-preview-card__meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.blog-preview-card__date {
    color: #8B7355;
    letter-spacing: 0.1em;
    font-weight: 300;
}

.blog-preview-card__category {
    padding: 4px 14px;
    background-color: #F5F3F0;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    border-radius: 15px;
    color: #6B6B6B;
}

.blog-preview-card__title {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1.2rem;
    line-height: 1.7;
    letter-spacing: 0.05em;
    color: #4A4A4A;
}

.blog-preview-card__excerpt {
    font-size: 0.95rem;
    line-height: 1.9;
    color: #6B6B6B;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.blog-preview-card__arrow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #8B7355;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-preview-card:hover .blog-preview-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   レスポンシブ対応
   ======================================== */

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 3rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card {
        padding: 2.5rem 2rem;
    }

    .service-card__number {
        font-size: 2.5rem;
        top: 1.5rem;
        right: 1.5rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-preview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-btn {
        min-width: auto;
        justify-content: center;
    }

    .cta-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-section__title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .service-card__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cta-btn {
        padding: 18px 30px;
        font-size: 0.95rem;
    }
}

/* ========================================
   リッチインタラクション用アニメーション（安全版）
   ======================================== */

/* スクロール時のフェードインアニメーション */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate.is-inview {
    opacity: 1;
    transform: translateY(0);
}

/* セクションごとの遅延 */
.service-card.animate:nth-child(1) {
    transition-delay: 0.1s;
}

.service-card.animate:nth-child(2) {
    transition-delay: 0.2s;
}

.service-card.animate:nth-child(3) {
    transition-delay: 0.3s;
}

.news-card.animate:nth-child(1) {
    transition-delay: 0.1s;
}

.news-card.animate:nth-child(2) {
    transition-delay: 0.2s;
}

.news-card.animate:nth-child(3) {
    transition-delay: 0.3s;
}

.blog-preview-card.animate:nth-child(1) {
    transition-delay: 0.1s;
}

.blog-preview-card.animate:nth-child(2) {
    transition-delay: 0.2s;
}

.blog-preview-card.animate:nth-child(3) {
    transition-delay: 0.3s;
}

/* モバイルではアニメーションを簡略化 */
@media (max-width: 768px) {
    .animate {
        transform: translateY(15px);
        transition-duration: 0.5s;
    }
}

/* ========================================
   エリアセクション
   ======================================== */

.area-section {
    background-color: var(--color-off-white);
}

.area-section__content {
    max-width: 800px;
    margin: 0 auto;
}

.area-section__group {
    margin-bottom: 32px;
}

.area-section__group:last-child {
    margin-bottom: 0;
}

.area-section__group-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-charcoal);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.area-section__group-title i {
    color: var(--color-natural-brown);
}

.area-section__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.area-section__link {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--color-light-gray);
    border-radius: 4px;
    color: var(--color-charcoal);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.area-section__link:hover {
    background: var(--color-natural-brown);
    border-color: var(--color-natural-brown);
    color: #fff;
}

@media (max-width: 768px) {
    .area-section__links {
        gap: 8px;
    }

    .area-section__link {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* ========================================
   FAQセクション
   ======================================== */

.faq-section {
    background-color: #F8F8F8;
    padding: 5rem 0;
}

.faq-section .section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-charcoal);
    margin-bottom: 1rem;
}

.faq-section .section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: var(--color-charcoal);
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #FAFAFA;
}

.faq-q-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--color-natural-brown);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.faq-q-text {
    flex: 1;
    font-weight: 500;
}

.faq-arrow {
    flex-shrink: 0;
    color: var(--color-natural-brown);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-a-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: #F0EDE8;
    color: var(--color-natural-brown);
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 1rem;
    vertical-align: top;
}

.faq-answer p {
    display: inline;
    color: var(--color-text);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 3rem 0;
    }

    .faq-section .section-title {
        font-size: 1.5rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.9rem;
        gap: 0.75rem;
    }

    .faq-q-icon,
    .faq-a-icon {
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 0.85rem;
    }

    .faq-answer {
        padding: 0 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1rem 1rem 1rem;
    }
}
