/* ===================================
   タブレット (1024px以下)
   =================================== */
@media (max-width: 1024px) {
    .wrapper {
        max-width: 100%;
        padding: 0 30px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-contact-box {
        max-width: 500px;
        margin: 0 auto;
    }

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

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

    .reason-container {
        grid-template-columns: 1fr;
    }

    .price-grid {
        /*grid-template-columns: 1fr;*/
    }

    .price-card.featured {
        transform: scale(1);
    }

    .price-card.featured:hover {
        transform: translateY(-10px);
    }

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

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

    .contact-container {
        grid-template-columns: 1fr;
    }

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

/* ===================================
   スマートフォン (768px以下)
   =================================== */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .wrapper {
        padding: 0 20px;
    }

    /* ヘッダー */
    .header-top {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: #ffffff;
        flex-direction: column;
        padding: 30px;
        gap: 0;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li a {
        padding: 15px 10px;
        width: 100%;
    }

    .nav-menu .cta-button {
        border-bottom: none;
        margin-top: 20px;
    }

    .nav-menu .cta-button a {
        border-radius: 8px;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* メインビジュアル */
    .hero-section {
        min-height: 500px;
        margin-top: 60px;
    }

    .hero-content {
        padding: 40px 0;
    }

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

    .title-large {
        font-size: 1.5rem;
    }

    .title-emphasis {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-features {
        flex-direction: column;
    }

    .feature-badge {
        width: 100%;
    }

    /* セクション共通 */
    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* サービス */
    .service-grid {
        grid-template-columns: 1fr;
    }

    /* 選ばれる理由 */
    .reason-item {
        flex-direction: column;
        text-align: center;
    }

    .reason-number {
        position: static;
        font-size: 2rem;
        opacity: 0.3;
        margin-bottom: 15px;
    }

    /* CTA */
    .cta-title {
        font-size: 1.8rem;
    }

    .cta-text {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    /* 料金 */
    .price-includes {
        grid-template-columns: 1fr;
    }

    .contact-phone-large a {
        font-size: 1.5rem;
    }

    /* 利用の流れ */
    .flow-step {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }

    .step-number {
        margin: 0 auto 20px;
    }

    /* 対応エリア */
    .area-list {
        grid-template-columns: repeat(2, 1fr);
    }

    /* フッター */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-about {
        padding-right: 0;
    }
}

/* ===================================
   小型スマートフォン (480px以下)
   =================================== */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .title-emphasis {
        font-size: 2.2rem;
    }

    .hero-contact-box {
        padding: 20px;
    }

    .contact-phone a {
        font-size: 1.5rem;
    }

    .price-amount {
        flex-direction: row;
        align-items: center;
    }

    .price-value {
        font-size: 2.0rem;
    }

    .area-list {
        grid-template-columns: 1fr 1fr;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .btn {
        font-size: 0.95rem;
    }
}

/* ===================================
   横向きスマートフォン対応
   =================================== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 400px;
    }

    .hero-content {
        padding: 30px 0;
    }

    section {
        padding: 40px 0;
    }
}

/* ===============================================
   SP固定電話CTA - スマートフォン専用
   768px以下で表示
=============================================== */

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

@media (max-width: 768px) {
    body {
        padding-bottom: 110px;
    }

    .sp-fixed-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
    }

    /* 緊急性訴求バー */
    .sp-cta-urgency {
        background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
        color: #fff;
        text-align: center;
        padding: 8px 15px;
        font-size: 12px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .sp-cta-urgency i {
        animation: sp-cta-flash 1s ease-in-out infinite;
    }

    @keyframes sp-cta-flash {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: 0.3;
        }
    }

    /* メインエリア */
    .sp-cta-main {
        background: #fff;
        padding: 12px 15px 14px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    }

    /* 電話ボタン */
    .sp-cta-phone-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        width: 100%;
        background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
        color: #fff;
        padding: 16px 20px;
        border-radius: 12px;
        text-decoration: none;
        font-weight: 700;
        position: relative;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .sp-cta-phone-btn:active {
        transform: scale(0.98);
        box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
    }

    /* シマーアニメーション */
    .sp-cta-phone-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        animation: sp-cta-shimmer 2.5s infinite;
    }

    @keyframes sp-cta-shimmer {
        0% {
            left: -100%;
        }

        100% {
            left: 100%;
        }
    }

    /* 電話アイコン */
    .sp-cta-phone-btn i {
        font-size: 24px;
        animation: sp-cta-phone-bounce 0.8s ease-in-out infinite;
        position: relative;
        z-index: 1;
    }

    @keyframes sp-cta-phone-bounce {

        0%,
        100% {
            transform: translateY(0) rotate(0deg);
        }

        25% {
            transform: translateY(-2px) rotate(-5deg);
        }

        75% {
            transform: translateY(-2px) rotate(5deg);
        }
    }

    /* テキスト部分 */
    .sp-cta-phone-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: relative;
        z-index: 1;
    }

    .sp-cta-phone-label {
        font-size: 11px;
        font-weight: 600;
        opacity: 0.9;
        margin-bottom: 2px;
    }

    .sp-cta-phone-number {
        font-size: 22px;
        font-weight: 800;
        letter-spacing: 0.03em;
    }
}

/* 小型スマートフォン対応 */
@media (max-width: 380px) {
    .sp-cta-phone-btn {
        padding: 14px 16px;
        gap: 10px;
    }

    .sp-cta-phone-number {
        font-size: 20px;
    }

    .sp-cta-phone-btn i {
        font-size: 22px;
    }

    .sp-cta-urgency {
        font-size: 11px;
        padding: 6px 10px;
    }
}