/* Color Palette: Navy, Light Blue, Orange */
:root {
    --navy: #3b5998;
    --sky-blue: #0099e5;
    --orange: #e67e22;
    --bg-light: #f4f7f9;
    --text: #333;
    --white: #fff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans JP', sans-serif; color: var(--text); line-height: 1.7; font-feature-settings: "palt"; letter-spacing: 0.12em;}
html { scroll-behavior: smooth; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header { height: 80px; display: flex; align-items: center; background: var(--white); border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 1000; }
.flex-header { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 1.6rem; font-weight: bold; color: var(--navy); }
.logo-accent { color: var(--sky-blue); }
.nav ul { display: flex; list-style: none; gap: 25px; align-items: center; }
.nav a { text-decoration: none; color: var(--text); font-size: 0.95rem; font-weight: 500; }

/* Buttons */
.btn-cta-small { background: var(--orange); color: var(--white) !important; padding: 10px 22px; border-radius: 50px; font-weight: bold; transition: 0.3s; }
.btn-cta-small:hover { background: #d35400; }
.btn-main { display: inline-block; background: var(--navy); color: var(--white); padding: 20px 45px; text-decoration: none; border-radius: 5px; font-weight: bold; font-size: 1.1rem; margin-top: 25px; transition: 0.3s; box-shadow: 0 4px 15px rgba(59,89,152,0.3); }
.btn-main:hover { background: #2d4373; transform: translateY(-2px); }
.btn-orange { width: 100%; background: var(--orange); color: var(--white); padding: 22px; border: none; border-radius: 5px; font-size: 1.3rem; font-weight: bold; cursor: pointer; box-shadow: 0 4px 0 #cf6d17; transition: 0.2s; }
.btn-orange:hover { transform: translateY(2px); box-shadow: 0 2px 0 #cf6d17; }

/* Hero */
.hero { padding: 80px 0; background-color: #fff; background-image: radial-gradient(var(--bg-light) 1px, transparent 1px); background-size: 20px 20px; }
.hero-flex { display: flex; align-items: center; gap: 50px; }
.hero-text { flex: 1.2; }
.hero-image { flex: 1; }
.hero-image img { width: 100%; border-radius: 8px; box-shadow: 20px 20px 0 var(--bg-light); }
.hero-label { font-size: 1.1rem; color: var(--sky-blue); font-weight: bold; margin-bottom: 15px; }
.hero h1 { font-size: 2.8rem; line-height: 1.3; color: var(--navy); margin-bottom: 25px; }
.highlight-blue { background: linear-gradient(transparent 70%, #d9eaff 70%); }
.hero-desc { font-size: 1.1rem; color: #555; }
.marker { color: var(--navy); font-weight: bold; }

/* 3 Boxes (Navy Style) */
.benefits { padding: 40px 0; background: var(--white); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.benefit-box { background: var(--navy); color: var(--white); padding: 35px 20px; text-align: center; border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.benefit-box h3 { font-size: 1.15rem; line-height: 1.6; }
.disclaimer { text-align: right; font-size: 0.8rem; color: #999; margin-top: 15px; }

/* Sections */
section { padding: 100px 0; }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 70px; color: var(--navy); }
.section-title::after { content: ''; display: block; width: 50px; height: 4px; background: var(--sky-blue); margin: 20px auto; }

/* Features */
.feature-item { display: flex; align-items: center; gap: 60px; margin-bottom: 100px; }
.feature-item.reverse { flex-direction: row-reverse; }
.point-badge { background: var(--sky-blue); color: var(--white); padding: 4px 12px; border-radius: 3px; font-size: 0.8rem; font-weight: bold; margin-bottom: 15px; display: inline-block; }
.feature-text { flex: 1; }
.feature-text h3 { font-size: 1.8rem; margin-bottom: 20px; color: var(--navy); }
.feature-img { flex: 1; }
.feature-img img { width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

/* Price Banner */
.price { background: var(--bg-light); }
.price-pre { text-align: center; color: var(--orange); font-weight: bold; font-size: 1.3rem; margin-bottom: 10px; }
.price-banner { background: var(--navy); display: flex; border-radius: 12px; overflow: hidden; color: var(--white); margin-bottom: 40px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.price-content { flex: 1.4; padding: 60px; }
.price-content h2 { font-size: 1.6rem; margin-bottom: 15px; font-weight: normal; opacity: 0.9; }
.amount { font-size: 3.8rem; font-weight: bold; line-height: 1; margin-bottom: 15px; color: var(--white); }
.amount span { font-size: 1.2rem; }
.price-visual { flex: 1; overflow: hidden; }
.price-visual img { width: 100%; height: 100%; object-fit: cover; }

/* Price List */
.price-list-wrap { background: var(--white); padding: 60px; border-radius: 12px; }
.price-list-wrap h3 { text-align: center; margin-bottom: 40px; color: var(--navy); font-size: 1.6rem; }
.price-details-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.price-details-list li { padding-left: 35px; position: relative; border-bottom: 1px solid #f0f0f0; padding-bottom: 20px; }
.price-details-list li::before { content: '✔'; position: absolute; left: 0; color: var(--sky-blue); font-size: 1.4rem; font-weight: bold; }
.price-details-list li strong { display: block; font-size: 1.1rem; color: var(--navy); margin-bottom: 5px; }

/* CTA */
.cta-inner { background: var(--white); padding: 60px; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); max-width: 800px; margin: 0 auto; }
.cta-inner h2 { text-align: center; font-size: 2rem; color: var(--navy); margin-bottom: 10px; }
.cta-inner p { text-align: center; margin-bottom: 40px; color: #666; }
.contact-form { display: flex; flex-direction: column; gap: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.contact-form input, .contact-form textarea { padding: 18px; border: 1px solid #ddd; border-radius: 6px; font-size: 1rem; width: 100%; }

.footer { padding: 50px 0; text-align: center; background: #2c3e50; color: #bdc3c7; font-size: 0.9rem; }

/* Hamburger Button (PCでは非表示) */
.hamburger {
    display: none;
    border: none;
    background: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 2000; /* メニューより手前に表示 */
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--navy);
    position: absolute;
    left: 0;
    transition: all 0.3s;
}

/* 3本線の配置 */
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

/* ハンバーガーが開いた時のアニメーション（×印になる） */
.hamburger.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    background-color: var(--white); /* 背景が紺色になるので白に変更 */
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
    background-color: var(--white);
}

.br-sp {
    display: none;
}




/* Mobile */
@media (max-width: 768px) {
    .br-sp {
        display: block;
    }

    /* ハンバーガーを表示 */
    .hamburger {
        display: block;
    }

    /* ナビゲーションをスマホ用に変更（全画面メニュー） */
    .nav {
        position: fixed;
        top: 0;
        right: -100%; /* 最初は画面外（右）に隠す */
        width: 100%;
        height: 100vh;
        background: var(--navy); /* 背景色 */
        transition: right 0.4s ease; /* スライドのアニメーション */
        z-index: 1500;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* クラスがついたら表示 */
    .nav.active {
        right: 0;
    }

    /* メニューリストのレイアウト */
    .nav ul {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .nav a {
        color: var(--white); /* 文字色を白に */
        font-size: 1.2rem;
        font-weight: bold;
    }

    /* スマホ用CTAボタンの見た目調整 */
    .btn-cta-small {
        background: var(--white);
        color: var(--orange) !important;
        padding: 15px 40px;
    }

    /* 既存のレイアウト調整用 */
    .hero-flex, .feature-item, .feature-item.reverse, .price-banner, .price-details-list, .form-row, .flow-wrapper {
        flex-direction: column;
    }
    .hero h1 { font-size: 2rem; text-align: center;}
    .hero-label { text-align: center;}
    .hero-desc { text-align: center; font-size: 4vw;}
    .scarcity-target { text-align: center;}
    .benefit-box {padding: 6% 0;}
    .benefit-grid { grid-template-columns: 1fr; }
    .price-content { padding: 30px; text-align: center; }
    .amount { font-size: 9.5vw; margin-bottom: 3%;}
    .amount span { font-size: 50%;}
    .price-list-wrap { padding: 30px; }
    .section-title {line-height: 1.5; font-size: 8vw;}
    .feature-text h3 { line-height: 1.4;}
    section { padding: 10% 0;}
    .feature-item:last-child { margin-bottom: 10%;}
    .price-content h2 {font-size: 4vw; margin-bottom: 3%;}
    .price-list-wrap h3 {font-size: 5.5vw; line-height: 1.5;}
    .price-details-list {
        grid-template-columns: 1fr; /* 強制的に1列にする */
        gap: 20px; /* 項目ごとの間隔を調整 */
    }
}



/* 限定バッジ全体のレイアウト */
.scarcity-target {
    margin-bottom: 20px;
    min-height: 40px; /* ガタつき防止 */
    margin-top: 20px;
}

.hero .scarcity-target {
    
}

.scarcity-target.center {
    display: flex;
    justify-content: center;
}

/* バッジのデザイン */
.limit-badge {
    display: inline-block;
    background: #fff5f0;
    color: var(--orange);
    border: 1px solid var(--orange);
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: bold;
    position: relative;
}

.limit-badge span {
    font-size: 1.3rem;
    margin: 0 2px;
    color: #e67e22; /* より強調 */
}

/* 信頼感を損なわないパルス（点滅）アニメーション */
.pulse {
    animation: pulse-animation 2.5s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0px rgba(230, 126, 34, 0.5);
        background: #fff5f0;
    }
    50% {
        background: #ffebe0; /* じわっと背景色も変える */
    }
    70% {
        box-shadow: 0 0 0 12px rgba(230, 126, 34, 0);
    }
    100% {
        box-shadow: 0 0 0 0px rgba(230, 126, 34, 0);
        background: #fff5f0;
    }
}

/* 追加：フェードイン用のCSS（JSから付与されるクラス） */
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}





/* Works Section (事例スライダー) */
.works { padding: 80px 0; background: #fff; }
.section-subtitle { text-align: center; margin-top: -40px; margin-bottom: 50px; color: #666; font-size: 0.95rem; }

.workSwiper { padding: 20px 0 60px !important; }
.work-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.08); height: 100%; border: 1px solid #f0f0f0; }
.work-img img { width: 100%; height: 220px; object-fit: cover; border-bottom: 1px solid #f0f0f0; }
.work-info { padding: 25px; }
.work-tag { display: inline-block; background: var(--bg-light); color: var(--navy); font-size: 0.75rem; font-weight: bold; padding: 4px 10px; border-radius: 4px; margin-bottom: 12px; }
.work-info h4 { font-size: 1.2rem; margin-bottom: 10px; color: var(--navy); }
.work-info p { font-size: 0.9rem; color: #555; line-height: 1.6; }

/* ▼ 追加：スライドの高さを一番高いものに揃える設定 */
.swiper-slide {
    height: auto;       /* 高さを自動にし、一番高いスライドに合わせる */
    display: flex;      /* 中身を伸張させるためにFlexbox化 */
    justify-content: center; /* 横方向中央揃え */
}

/* 既存の .work-card も微調整（height: 100% は必須） */
.work-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    height: 100%;       /* 親の高さ（最大のスライド）いっぱいに伸ばす */
    width: 100%;        /* 横幅も親に合わせる */
    border: 1px solid #f0f0f0;
    display: flex;      /* ▼ 中身のレイアウトを整えるため追加 */
    flex-direction: column; /* 縦並び */
}

.work-info {
    padding: 25px;
    flex: 1;            /* ▼ 文章が短くても余白を埋めて高さを揃える */
    display: flex;
    flex-direction: column;
}

/* もし説明文の下に余白を作りたければ */
.work-info p {
    margin-bottom: auto; /* 必要に応じて */
}

/* Swiper Controls */
.swiper-button-next, .swiper-button-prev { color: var(--navy) !important; transform: scale(0.7); }
.swiper-pagination-bullet-active { background: var(--navy) !important; }

/* 見積り比較不要タグの装飾調整 */
.price-pre { text-align: center; margin-bottom: 30px; }
.price-pre span {
    background: var(--orange);
    color: var(--white);
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3);
}

/* リストの見出し装飾調整 */
.list-title {
    text-align: center;
    font-size: 1.6rem;
    color: var(--navy);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.list-title::before, .list-title::after {
    content: '';
    height: 1px;
    background: #ddd;
    flex-grow: 1;
    max-width: 100px;
}
.list-title span {
    color: var(--sky-blue);
    font-weight: bold;
    border-bottom: 2px solid var(--sky-blue);
}

/* CTAヘッダーの調整 */
.cta-header { text-align: center; margin-bottom: 30px; }
.cta-header h2 { font-size: 2.2rem; color: var(--navy); margin-bottom: 10px; }
.cta-header p { font-size: 1.1rem; color: #666; font-weight: 500; }

/* アニメーション用ベース */
.fade-prepare { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.visible { opacity: 1 !important; transform: translateY(0) !important; }

.btn-submit { margin-top: 15px;}



@media (max-width: 768px) {
    .cta-header h2 { font-size: 7vw; line-height: 1.4;}
    .cta-inner { padding: 10% 5%;}
    .contact-form input, .contact-form textarea {
        line-height: 1.5;
    }
    .btn-submit { margin-top: 3%;}
}





/* Flow Section (修正版：3列×2行レイアウト) */
.flow {
    background: var(--bg-light);
}

.flow-wrapper {
    display: grid; /* グリッドレイアウトに変更 */
    grid-template-columns: repeat(3, 1fr); /* 横3列 */
    gap: 30px; /* ボックス間の間隔 */
    row-gap: 50px; /* 行間の間隔 */
}

.flow-item {
    background: var(--white);
    padding: 35px 25px; /* 余白を広げてゆったりさせる */
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    /* ▼ アニメーション用の設定を追加 */
    border: 2px solid transparent; /* 最初は透明な線を引いておく（ガタつき防止） */
    transition: all 0.3s ease;     /* 0.3秒かけて滑らかに変化 */
    cursor: default;               /* カーソルは通常の矢印のまま */
}

/* ▼ ホバー時のアクションを追加 */
.flow-item:hover {
    transform: translateY(-7px); /* 少し上に浮き上がる */
    box-shadow: 0 20px 40px rgba(59, 89, 152, 0.15); /* 影を濃く・広くする（少し青みを入れる） */
    border-color: var(--sky-blue); /* 枠線を水色にする */
}

/* PC時の矢印（右向き） */
.flow-item::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -25px;
    transform: translateY(-50%);
    border-style: solid;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent #ddd;
    z-index: 1;
    transition: opacity 0.3s; /* 矢印も自然に見えるように */
}

/* 3列目（右端）と最後の要素は矢印を消す */
.flow-item:nth-child(3n)::after,
.flow-item:last-child::after {
    display: none;
}

.step-num {
    display: block;
    color: var(--sky-blue);
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-family: 'Helvetica', sans-serif;
    letter-spacing: 0.05em;
}

.flow-header h3 {
    color: var(--navy);
    font-size: 1.25rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    display: block;
    width: 100%;
}

.flow-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
    text-align: left;
}

.text-navy {
    color: var(--navy);
    font-weight: bold;
}

/* Mobile Adjustments for Flow */
@media (max-width: 900px) {
    .flow-wrapper {
        grid-template-columns: 1fr; /* スマホは1列 */
        gap: 50px;
        max-width: 500px;
        margin: 0 auto;
    }

    /* スマホ時の矢印（下向き） */
    .flow-item::after {
        top: auto;
        bottom: -35px; /* 下へ配置 */
        right: 50%; /* 中央へ */
        transform: translateX(50%); /* 中央揃え補正 */
        border-width: 15px 10px 0 10px; /* 下向き三角形 */
        border-color: #ddd transparent transparent transparent;
        display: block !important; /* PCで消した3番目なども復活させる */
    }
    
    /* 本当に最後の要素だけは矢印不要 */
    .flow-item:last-child::after {
        display: none !important;
    }

    .flow-desc {
        text-align: center; /* スマホでは中央揃え */
    }
}