/* ==========================================
   ヒーローセクション
========================================== */
.hero {
    background: var(--gradient-hero);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image:
        radial-gradient(circle at 20% 50%, var(--primary-color) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--primary-orange) 0%, transparent 50%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-label {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-sm);
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

.highlight-orange {
    color: var(--primary-orange);
}

.highlight-blue {
    color: var(--primary-color);
    position: relative;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

/* ヒーロー画像モックアップ */
.hero-image-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 320px;
    height: 640px;
    background: var(--white);
    border-radius: 40px;
    box-shadow: var(--shadow-large);
    padding: 20px;
    position: relative;
    border: 12px solid var(--text-dark);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--light-gray);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.map-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: relative;
}

.map-pins {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.pin {
    position: absolute;
    font-size: 3rem;
    animation: bounce 2s ease-in-out infinite;
}

.pin-1 {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.pin-2 {
    top: 40%;
    right: 25%;
    animation-delay: 0.3s;
}

.pin-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 0.6s;
}

.pin-4 {
    bottom: 20%;
    right: 30%;
    animation-delay: 0.9s;
}

@keyframes bounce {

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

    50% {
        transform: translateY(-10px);
    }
}

/* フローティングアニメーション */
@keyframes float {

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

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* ==========================================
   概要セクション
========================================== */
.overview {
    background: var(--white);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.overview-text {
    font-size: 1.3rem;
    color: var(--text-dark);
    line-height: 1.9;
}

.overview-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* ==========================================
   セクション共通スタイル
========================================== */
section {
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-orange);
    letter-spacing: 2px;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}



/* ==========================================
   課題と解決セクション
========================================== */
.problems {
    background: var(--light-gray);
    padding: var(--spacing-xl) 0;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.problem-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-small);
    transition: transform 0.3s, box-shadow 0.3s;
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

.problem-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FFE0E0 0%, #FFCCCC 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.problem-icon i {
    font-size: 2.5rem;
    color: #E74C3C;
}

.problem-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.problem-description {
    margin-bottom: var(--spacing-md);
}

.solution {
    background: var(--gradient-hero);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.solution-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-blue);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-xs);
}

.solution-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.solution-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.solution-description {
    font-size: 0.95rem;
}


/* ==========================================
   機能セクション
========================================== */
.functions {
    background: var(--light-gray);
    padding: var(--spacing-xl) 0;
}

.functions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.function-category {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-small);
    transition: transform 0.3s, box-shadow 0.3s;
}

.function-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.category-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 3px solid var(--primary-color);
}

.category-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-blue);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon i {
    font-size: 2rem;
    color: var(--white);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-dark);
}

.function-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.function-item {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--light-gray);
    border-radius: var(--radius-sm);
}

.function-item>i {
    font-size: 1.5rem;
    color: var(--primary-orange);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.function-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.function-item p {
    font-size: 0.9rem;
}

/* ==========================================
   導入効果セクション
========================================== */
.effects {
    background: var(--white);
    padding: var(--spacing-xl) 0;
}

.effects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.effect-card {
    background: var(--gradient-hero);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: var(--shadow-small);
    transition: transform 0.3s, box-shadow 0.3s;
}

.effect-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

.effect-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-blue);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
}

.effect-icon i {
    font-size: 3rem;
    color: var(--white);
}

.effect-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.effect-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.stat {
    background: var(--white);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    min-width: 120px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-orange);
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 600;
}

.effect-description {
    line-height: 1.7;
}


/* ==========================================
   レスポンシブ対応
========================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .nav {
        display: none;
    }

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

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

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

    .phone-mockup {
        width: 280px;
        height: 560px;
    }

    .problems-grid,
    .functions-grid,
    .effects-grid,
    .pricing-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

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

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

    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }
}

/* ====================================
   下層ページ用：overviewセクション全体を縮小
   余白なし・レスポンシブ対応
   ==================================== */
.service-prime__head h3 .logo {
    width: fit-content !important;
    height: fit-content !important;
}

/* デスクトップのみ縮小を適用 */
@media (min-width: 769px) {
    .overview {
        transform: scale(0.85) !important;
        transform-origin: top center !important;
        /* 上中央を基準 */
        margin-bottom: -20% !important;
        /* 下の余白を詰める */
        padding-bottom: 15vw !important;
        /* 下部に余白を追加して点線を表示（増量） */
        font-size: 20px !important;
        /* scale(0.8)で縮小されるので20px → 実際16px */
    }

.service-prime .media {transform: scale(0.85) !important;}

    /* PCでの文字サイズ調整（scale(0.8)を考慮） */
    .overview .overview-text {
        font-size: 20px !important;
        /* 20px × 0.8 = 16px */
        line-height: 1.7 !important;
    }

    .overview .service-prime__head h3 .label {
        font-size: 22.5px !important;
        /* 22.5px × 0.8 = 18px */
    }

    .overview .service-prime__detail h4 {
        font-size: 25px !important;
        /* 25px × 0.8 = 20px */
        line-height: 1.5 !important;
    }

    .overview .service-prime__detail ul li {
        font-size: 22px !important;
        line-height: 1.8 !important;
    }
    .service-prime__head p span{transform: scale(0.5) !important;}


    /* 青い点線の枠は縮小させない */
    .overview::before,
    .overview::after,
    .overview .container::before,
    .overview .container::after,
    .overview-content::before,
    .overview-content::after {
        transform: scale(1.25) !important;
        /* 縮小を打ち消す: 1 ÷ 0.8 = 1.25 */
    }

    /* 「知る」の青いたぬきバッジ画像は縮小させない（除外） */
    .overview .service-prime__head p,
    .overview .service-prime__head p::before,
    .overview .service-prime__head p::after,
    .overview .service-prime__head p span::before,
    .overview .service-prime__head p span::after {
        transform: scale(1.25) !important;
        /* 縮小を打ち消す */
    }
}

/* タブレット・スマホでは通常サイズ */
@media (max-width: 768px) {
    .overview {
        transform: none !important;
        /* 縮小しない */
        margin-bottom: 0 !important;
        font-size: 16px !important;
        /* スマホの基本サイズ */
    }

    /* スマホでの文字サイズを明示的に指定 */
    .overview .overview-text {
        font-size: 16px !important;
        line-height: 1.7 !important;
    }

    .overview .service-prime__head p span {
        font-size: 14px !important;
    }

    .overview .service-prime__head h3 .label {
        font-size: 18px !important;
    }

    .overview .service-prime__detail h4 {
        font-size: 20px !important;
        line-height: 1.5 !important;
    }

    .overview .service-prime__detail ul li {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    /* スマホでは画像サイズを調整 */
    .overview .service-prime .media,
    .overview .service-prime .media-thumbnail,
    .overview .service-prime .media-movie {
        max-width: 280px !important;
    }

    .overview .service-prime .media img,
    .overview .service-prime .media video {
        max-width: 280px !important;
        width: 100% !important;
        height: auto !important;
    }

        .service-prime__head h3 .logo img {
            width: 85% !important;
            margin: 0 auto!important;
        }
}

@media (max-width: 480px) {

    /* 小型スマホでは文字をやや小さく */
    .overview {
        font-size: 15px !important;
    }

    .overview .overview-text {
        font-size: 15px !important;
    }

    .overview .service-prime__head h3 .label {
        font-size: 17px !important;
    }

    .overview .service-prime__detail h4 {
        font-size: 18px !important;
    }

    .overview .service-prime__detail ul li {
        font-size: 14px !important;
    }

    /* 小型スマホでは画像サイズのみ調整 */
    .overview .service-prime .media,
    .overview .service-prime .media-thumbnail,
    .overview .service-prime .media-movie {
        max-width: 240px !important;
    }

    .overview .service-prime .media img,
    .overview .service-prime .media video {
        max-width: 240px !important;
    }
}

/* 
   調整のポイント：
   
   PCは scale(0.8) で縮小されるため、
   希望のサイズ ÷ 0.8 = 指定するサイズ
   
   例: 16pxにしたい → 16 ÷ 0.8 = 20px を指定
*/