/**
 * LINE査定への誘導（四日市店）
 * ボタン・QRコード・ヘッダー/フッター/トップ各所の LINE パーツ
 * 色は LINE ブランドカラー（#06C755）
 */

/* ===========================================
   共通：LINEボタン
=========================================== */
.c-line-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    min-width: 15rem;
    padding: 0.95em 2.1em;
    background: #06C755;
    color: #ffffff !important;
    border: none;
    border-radius: 999px;
    font-size: 1.125rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    box-shadow: 0 4px 0 #04963f;
    overflow: hidden;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.c-line-btn::after {
    content: '';
    display: block;
    width: 0.5em;
    height: 0.5em;
    border-top: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.c-line-btn__icon {
    width: 1.6em;
    height: 1.6em;
    flex-shrink: 0;
}

.c-line-btn__label {
    white-space: nowrap;
}

@media (hover: hover) {
    .c-line-btn:hover {
        background: #05b84e;
        transform: translateY(1px);
        box-shadow: 0 3px 0 #04963f;
    }

    .c-line-btn:hover::after {
        transform: rotate(45deg) translate(2px, -2px);
    }
}

.c-line-btn:active {
    transform: translateY(4px);
    box-shadow: none;
}

.c-line-btn--lg {
    font-size: 1.25rem;
    min-width: 18rem;
}

.c-line-btn--xl {
    font-size: 1.5rem;
    min-width: 22rem;
    padding: 1em 2.2em;
    box-shadow: 0 6px 0 #04963f, 0 12px 26px rgba(0, 0, 0, 0.22);
}

@media (hover: hover) {
    .c-line-btn--xl:hover {
        box-shadow: 0 5px 0 #04963f, 0 10px 22px rgba(0, 0, 0, 0.22);
    }
}

/* 数秒おきに光が走る */
.c-line-btn--shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 38%;
    height: 100%;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
    transform: skewX(-20deg);
    animation: c-line-shine 3.8s ease-in-out 2s infinite;
    pointer-events: none;
}

@keyframes c-line-shine {
    0% { left: -60%; }
    28%, 100% { left: 130%; }
}

@keyframes c-line-fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===========================================
   共通：QRコード（スマホでは非表示）
=========================================== */
.c-line-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    flex-shrink: 0;
}

.c-line-qr__img {
    display: block;
    width: 7.5rem;
    height: 7.5rem;
    padding: 0.35rem;
    background: #ffffff;
    border: 1px solid #e3e7f0;
    border-radius: 8px;
    box-sizing: border-box;
}

.c-line-qr__caption {
    color: #4a4a5c;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

/* ===========================================
   ヘッダー
=========================================== */
.header-contact .header-btn.header-btn-line {
    background-color: #06C755 !important;
    box-shadow: 0 4px 0 #04963f;
    padding: 10px 20px;
    font-weight: 800;
}

.header-contact .header-btn.header-btn-line:hover {
    background-color: #05b84e !important;
    box-shadow: 0 2px 0 #04963f;
}

.header-btn.header-btn-line .header-btn-icon {
    width: 22px;
    height: 22px;
}

/* スマホ：ハンバーガー左の LINE査定ボタン */
.header-line-sp {
    display: none;
}

@media (max-width: 768px) {
    .header-line-sp {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-left: auto;
        margin-right: 10px;
        padding: 8px 14px;
        background: #06C755;
        color: #ffffff !important;
        border-radius: 999px;
        font-size: 0.85rem;
        font-weight: 800;
        line-height: 1;
        text-decoration: none !important;
        white-space: nowrap;
        box-shadow: 0 3px 0 #04963f;
    }

    .header-line-sp:active {
        transform: translateY(2px);
        box-shadow: none;
    }

    .header-line-sp__icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
}

/* ドロワー */
.header-drawer .header-drawer-btn-line {
    color: #ffffff !important;
    background-color: #06C755 !important;
    background-image: none !important;
    box-shadow: 0 4px 0 #04963f;
}

.header-drawer .header-drawer-btn-line:hover,
.header-drawer .header-drawer-btn-line:focus {
    color: #ffffff !important;
    background-color: #05b84e !important;
    box-shadow: 0 2px 0 #04963f;
    transform: translateY(1px);
}

.header-drawer-line-note {
    margin: -0.35rem 0 0;
    color: #4a4a5c;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
}

/* スマホ下固定バー：LINEを広めに */
.mobile-bottom-bar .mobile-bottom-btn-phone {
    flex: 1;
    max-width: 150px;
}

.mobile-bottom-bar .mobile-bottom-btn-line {
    flex: 1.5;
    max-width: 250px;
    padding: 14px 12px;
    color: #ffffff !important;
    background-color: #06C755 !important;
    background-image: none !important;
    box-shadow: 0 4px 0 #04963f;
    white-space: nowrap;
}

.mobile-bottom-bar .mobile-bottom-btn-line:hover,
.mobile-bottom-bar .mobile-bottom-btn-line:focus {
    color: #ffffff !important;
    background-color: #05b84e !important;
    box-shadow: 0 2px 0 #04963f;
}

@media (max-width: 360px) {
    .mobile-bottom-bar .mobile-bottom-btn-line {
        padding: 12px 8px;
        font-size: 0.85rem;
    }
}

/* ===========================================
   トップ画面（FV）：LINEで無料査定
=========================================== */
.p-mv__line {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    width: min(100%, 36rem);
    margin-top: 0.5rem;
    opacity: 0;
    animation: c-line-fade-up 0.5s ease-out 1.1s forwards;
}

.p-mv__line-catch {
    margin: 0;
    color: #FFD700;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-shadow:
        0 1px 0 #020283,
        0 2px 8px rgba(0, 0, 0, 0.45);
}

.p-mv__line .p-mv__line-btn {
    width: min(100%, 32rem);
    min-width: 0;
    font-size: 1.85rem;
}

@media (min-width: 1025px) {
    .p-mv__line {
        width: min(100%, 38rem);
    }
}

@media (min-width: 1300px) and (max-height: 900px) {
    .p-mv__line {
        width: min(100%, clamp(18rem, 36vw, 32rem));
    }

    .p-mv__line .c-line-btn--xl {
        font-size: 1.65rem;
    }

    .p-mv__line-catch {
        font-size: 1.15rem;
    }
}

@media (min-width: 768px) and (max-width: 1299.98px) {
    .p-mv__line {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .p-mv__line {
        width: 100%;
        max-width: 22rem;
        margin: 0.7rem auto 0;
        gap: 0.4rem;
        animation-delay: 0.9s;
    }

    .p-mv__line-catch {
        font-size: 0.95rem;
    }

    .p-mv__line .c-line-btn--xl {
        width: 100%;
        font-size: 1.3rem;
        padding: 0.9em 1.2em;
    }
}

/* ===========================================
   LINE査定セクション（3ステップ）
=========================================== */
.p-line {
    position: relative;
    padding: 5rem 0 5.5rem;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, #0B2A8C 0%, #061A66 100%);
    overflow: hidden;
    scroll-margin-top: 90px;
}

.p-line__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.p-line__header {
    margin-bottom: 3rem;
    text-align: center;
}

.p-line__label-en {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 0.3rem 0.85rem;
    background: #06C755;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    border-radius: 2px;
}

.p-line__title-rule {
    display: block;
    width: 2.5rem;
    height: 2px;
    margin: 0 auto 0.85rem;
    background: #FFD700;
    border-radius: 2px;
}

.p-line__title {
    margin: 0 0 1rem;
    color: #ffffff;
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.4;
}

.p-line__title-accent {
    color: #FFD700;
}

.p-line__lead {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.8;
}

.p-line__br-sp {
    display: none;
}

.p-line__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin: 0 0 3rem;
    padding: 0;
    list-style: none;
}

.p-line__step {
    position: relative;
    padding: 2.4rem 1.5rem 1.75rem;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* ステップ間の矢印 */
.p-line__step + .p-line__step::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -1.35rem;
    border-top: 0.55rem solid transparent;
    border-bottom: 0.55rem solid transparent;
    border-left: 0.7rem solid #FFD700;
    transform: translateY(-50%);
}

.p-line__step-num {
    position: absolute;
    top: -0.95rem;
    left: 50%;
    padding: 0.3rem 1rem;
    background: #E6192E;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    white-space: nowrap;
    border-radius: 999px;
    box-shadow: 0 3px 0 #a80f1f;
    transform: translateX(-50%);
}

.p-line__step-num b {
    margin-left: 0.2rem;
    font-size: 1.05rem;
}

.p-line__step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin: 0.25rem auto 1rem;
    background: #E8F9EE;
    color: #06C755;
    border-radius: 50%;
}

.p-line__step-icon svg {
    width: 2rem;
    height: 2rem;
}

.p-line__step-title {
    margin: 0 0 0.6rem;
    color: #020283;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.4;
}

.p-line__step-text {
    margin: 0;
    color: #4a4a5c;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.75;
    text-align: left;
}

.p-line__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.25rem;
    max-width: 46rem;
    margin: 0 auto;
    padding: 1.75rem 2.25rem;
    background: #ffffff;
    border: 3px solid #06C755;
    border-radius: 16px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

.p-line__cta-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.p-line__cta-catch {
    margin: 0;
    color: #020283;
    font-size: 1.05rem;
    font-weight: 900;
}

.p-line__cta-id,
.p-cta__line-id {
    margin: 0.2rem 0 0;
    color: #4a4a5c;
    font-size: 0.85rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .p-line {
        padding: 3.5rem 0 4rem;
    }

    .p-line__inner {
        padding: 0 16px;
    }

    .p-line__header {
        margin-bottom: 2.5rem;
    }

    .p-line__title {
        font-size: 1.6rem;
    }

    .p-line__lead {
        font-size: 0.95rem;
    }

    .p-line__br-sp {
        display: inline;
    }

    .p-line__steps {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2.25rem;
    }

    .p-line__step {
        padding: 2.1rem 1.25rem 1.4rem;
    }

    .p-line__step + .p-line__step::before {
        display: none;
    }

    .p-line__cta {
        padding: 1.5rem 1rem 1.6rem;
    }

    .p-line__cta-main {
        width: 100%;
    }

    .p-line__cta-catch {
        font-size: 0.95rem;
    }

    .p-line__cta .c-line-btn--xl {
        width: 100%;
        min-width: 0;
        font-size: 1.3rem;
        padding: 0.9em 1.2em;
    }
}

/* ===========================================
   選ばれる理由の下のボタン
=========================================== */
@media (max-width: 767px) {
    .p-reasons__cta .c-line-btn {
        width: 100%;
        max-width: 22.5rem;
        min-width: 0;
    }
}

/* ===========================================
   CTAカード（LINE版）
=========================================== */
.p-cta__title-line {
    color: #06C755;
}

.p-cta__line {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
}

.p-cta__line-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}

@media (max-width: 767px) {
    .p-cta__line-main {
        width: 100%;
    }

    .p-cta__line .c-line-btn {
        width: 100%;
        max-width: 22.5rem;
        min-width: 0;
    }
}

/* ===========================================
   法人向けバナー
=========================================== */
.b2b-banner-line {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.75rem;
}

.b2b-banner-line__text {
    margin: 0;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 767px) {
    .b2b-banner-line .c-line-btn {
        width: 100%;
        max-width: 22.5rem;
        min-width: 0;
    }
}

/* ===========================================
   フッター
=========================================== */
.footer-line {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    max-width: 30rem;
    padding: 1.1rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-sizing: border-box;
}

.footer-line__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
}

.footer-line__catch {
    margin: 0;
    color: #FFD700;
    font-size: 0.9rem;
    font-weight: 900;
}

.footer-line__id {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.footer-line .c-line-btn {
    font-size: 1.05rem;
    min-width: 0;
}

.footer-line__qr .c-line-qr__img {
    width: 6.25rem;
    height: 6.25rem;
}

.footer-line__qr .c-line-qr__caption {
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact-item--line {
    align-items: center;
}

.footer-contact-line-icon {
    width: 18px;
    height: 18px;
    color: #06C755;
    background: #ffffff;
    border-radius: 4px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .footer-line {
        justify-content: center;
        max-width: none;
    }

    .footer-line__body {
        align-items: center;
        width: 100%;
    }

    .footer-line .c-line-btn {
        width: 100%;
        max-width: 22.5rem;
    }
}

/* ===========================================
   QRコードはスマホでは出さない（ボタンで直接開ける）
=========================================== */
@media (max-width: 768px) {
    .c-line-qr {
        display: none !important;
    }
}

/* ===========================================
   動きを減らす設定
=========================================== */
@media (prefers-reduced-motion: reduce) {
    .p-mv__line {
        animation: none !important;
        opacity: 1 !important;
    }

    .c-line-btn--shine::before {
        animation: none !important;
        content: none;
    }
}

/* ===========================================
   ブログ（記事下・一覧下）
=========================================== */
.single-post-line,
.blog-listing-line {
    margin: 3rem 0 2.5rem;
}
