/* --- ベース設定 --- */
:root {
    --primary: #0f172a;   /* 濃紺 */
    --accent: #f97316;    /* オレンジ */
    --blue: #3b82f6;      /* 青 */
    --bg-light: #f1f5f9;  /* 背景用グレー */
    --text: #334155;      /* 本文色 */
    --white: #ffffff;
    --shadow: 0 20px 40px -15px rgba(0,0,0,0.15);
    --gradient-blue: linear-gradient(135deg, #3b82f6, #2563eb);
}

* { box-sizing: border-box; }
body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.8;
    margin: 0;
    padding-bottom: 0px; /* SP固定フッター分 */
    word-break: break-all; /* URLはみ出し防止 */
    -webkit-font-smoothing: antialiased;
}
@media(max-width: 768px) {
    body {
        padding-bottom: 70px; /* SP固定フッター分 */
    }
}

/* 文字組調整クラス */
.ib { display: inline-block; } /* 文節での改行落ち防止 */
.sp-only { display: none; } /* スマホのみ改行用 */

/* ユーティリティ */
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

/* --- ヘッダー（スマホ最適化版） --- */
.header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: fixed; width: 100%; top: 0; z-index: 1000; height: 70px;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 100%; }

/* ロゴ */
.logo-area { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-svg { width: 40px; height: 40px; }
.logo-text { font-weight: 900; font-size: 1.4rem; color: var(--primary); line-height: 1; letter-spacing: -0.05em; }
.logo-pro { background: var(--blue); color: white; font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; margin-left: 5px; vertical-align: middle; }

/* ヘッダー右側（CTA + ステータス） */
.header-right { display: flex; align-items: center; gap: 15px; }

/* フォーム相談ボタン */
.btn-header-ol {
    color: var(--primary); border: 2px solid var(--primary); padding: 8px 20px; border-radius: 50px;
    text-decoration: none; font-weight: bold; font-size: 0.9rem; transition: 0.3s;
    display: flex; align-items: center; gap: 6px; background: white;
}
.btn-header-ol:hover { background: var(--primary); color: white; }

/* 平均返信時間 */
.header-status { font-size: 0.8rem; color: var(--primary); font-weight: bold; text-align: right; line-height: 1.2; }
.pulse { color: #22c55e; animation: pulseAnim 2s infinite; margin-right: 4px; }
@keyframes pulseAnim { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }


/* --- ヒーローセクション --- */
.hero-ultimate {
    padding: 140px 0 80px;
    background: #f8fafc;
    position: relative; overflow: hidden;
}
.hero-bg-pattern {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(var(--blue) 1px, transparent 1px);
    background-size: 40px 40px; opacity: 0.05; z-index: 0;
}

.hero-layout { display: flex; align-items: center; justify-content: space-between; gap: 60px; position: relative; z-index: 1; }
.hero-text-area { flex: 1; max-width: 600px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff1f2; color: #e11d48; font-weight: bold;
    padding: 6px 14px; border-radius: 30px; font-size: 0.85rem; margin-bottom: 25px;
    border: 2px solid #fecdd3;
}
h1 { line-height: 1.3; margin-bottom: 30px; text-wrap: balance; } /* text-wrap: balance で見出しのバランスを自動調整 */
.h1-sub { font-size: 1.8rem; color: var(--text); font-weight: 700; display: block; margin-bottom: 10px; }
.h1-main { font-size: 3.5rem; font-weight: 900; letter-spacing: -0.03em; }
.text-gradient-blue { background: var(--gradient-blue); -webkit-background-clip: text; color: transparent; }

.hero-lead { font-size: 1.15rem; margin-bottom: 40px; color: #475569; text-wrap: pretty; }
.underline-marker { background: linear-gradient(transparent 70%, #bae6fd 70%); font-weight: bold; color: var(--primary); }

/* LINEボタン */
.btn-line-rich {
    background: #06c755; color: white; text-decoration: none;
    display: flex; align-items: center; padding: 15px 20px 15px 25px;
    border-radius: 16px; transition: 0.3s; box-shadow: var(--shadow);
    border: 2px solid #05b34c; position: relative; overflow: hidden;
    width: 100%; max-width: 450px;
}
.btn-line-rich:hover { transform: translateY(-3px); box-shadow: 0 25px 50px -12px rgba(6,199,85,0.5); }
.btn-line-rich::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg); animation: shine 3s infinite ease-in-out;
}
@keyframes shine { 0% { left: -100%; } 20% { left: 100%; } 100% { left: 100%; } }

.btn-icon { font-size: 3rem; margin-right: 20px; flex-shrink: 0; }
.btn-text { flex: 1; }
.btn-main { display: block; font-size: 1.3rem; font-weight: 900; line-height: 1.3; }
.btn-sub { display: block; font-size: 0.8rem; opacity: 0.9; font-weight: normal; }
.btn-arrow { font-size: 1.2rem; margin-left: 10px; }
.trust-note { margin-top: 15px; font-size: 0.9rem; color: #64748b; font-weight: bold; display: flex; align-items: center; gap: 8px; justify-content: center; }

/* 修復ビジュアル */
.hero-visual-area { flex: 1; position: relative; height: 500px; display: flex; align-items: center; justify-content: center; }
.device-mockup {
    width: 100%; max-width: 500px; height: 350px; background: white;
    border-radius: 24px; box-shadow: var(--shadow); padding: 15px;
    border: 4px solid #e2e8f0; position: relative;
}
.screen {
    width: 100%; height: 100%; background: #f1f5f9; border-radius: 12px;
    position: relative; overflow: hidden; border: 2px solid #cbd5e1;
}
.screen-state {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.error-state { background: #1e293b; color: #ef4444; z-index: 1; }
.error-box { text-align: center; animation: shake 0.5s infinite; }
.error-box i { font-size: 4rem; margin-bottom: 10px; }
.error-box p { font-size: 1.5rem; font-weight: bold; margin: 0; }
.error-code { font-family: monospace; font-size: 0.8rem; color: #94a3b8; margin-top: 10px; display: block; }

@keyframes shake { 0% { transform: translate(1px, 1px) rotate(0deg); } 50% { transform: translate(-1px, 2px) rotate(-1deg); } 100% { transform: translate(1px, -2px) rotate(-1deg); } }

.scan-line {
    position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, var(--blue), transparent);
    z-index: 5; animation: scan 4s infinite ease-in-out 1s; opacity: 0.8;
}
@keyframes scan { 0% { left: -100%; } 50% { left: 200%; } 100% { left: 200%; } }

.fixed-state {
    background: white; z-index: 2;
    clip-path: inset(0 100% 0 0);
    animation: revealFixed 4s infinite ease-in-out 1s;
}
@keyframes revealFixed { 0% { clip-path: inset(0 100% 0 0); } 25% { clip-path: inset(0 0 0 0); } 75% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 0); } }

.site-header-mock { width: 90%; height: 20px; background: #e2e8f0; border-radius: 4px; margin-bottom: 20px; position: absolute; top: 20px; }
.site-hero-mock { color: var(--blue); text-align: center; animation: popIn 0.5s ease-out 1.5s backwards; }
.site-hero-mock i { font-size: 5rem; margin-bottom: 10px; }
.site-hero-mock p { font-size: 1.5rem; font-weight: bold; margin: 0; }
@keyframes popIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.pro-badge-float {
    position: absolute; bottom: -20px; right: -20px;
    background: var(--primary); color: white; padding: 12px 24px;
    border-radius: 50px; font-weight: bold; display: flex; align-items: center; gap: 10px;
    box-shadow: var(--shadow); border: 3px solid white; z-index: 10;
    animation: float 3s infinite ease-in-out;
}
.pro-badge-float i { color: var(--blue); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* --- 悩みセクション --- */
.pain { padding: 80px 0; background: white; }
.section-title { font-size: 2.2rem; font-weight: 900; color: var(--primary); margin-bottom: 50px; text-wrap: balance; }
.marker { background: linear-gradient(transparent 60%, #fef08a 60%); }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pain-item { background: var(--bg-light); padding: 30px; border-radius: 16px; text-align: center; }
.pain-icon { font-size: 3rem; margin-bottom: 15px; }
.pain-message { text-align: center; margin-top: 40px; font-size: 1.2rem; font-weight: bold; color: var(--primary); }

/* --- 強みセクション --- */
.feature { padding: 80px 0; background: var(--primary); color: white; }
.feature-box { max-width: 800px; margin: 0 auto; }
.feature .section-title { color: white; margin-bottom: 50px; text-align: center; }
.text-blue { color: var(--blue); }
.feature-list { list-style: none; padding: 0; }
.feature-list li { display: flex; gap: 20px; margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 40px; }
.feature-list li:last-child { border-bottom: none; }
.f-num { font-size: 3rem; font-weight: 900; color: var(--blue); line-height: 1; flex-shrink: 0; }
.f-text h3 { margin: 0 0 10px 0; font-size: 1.4rem; color: var(--accent); }
.f-text p { margin: 0; opacity: 0.9; }

/* --- 料金セクション --- */
.price { padding: 80px 0; background: var(--bg-light); }
.section-sub { text-align: center; margin-bottom: 40px; font-weight: bold; }
.price-card {
    max-width: 600px; margin: 0 auto; background: white; border-radius: 20px;
    overflow: hidden; box-shadow: var(--shadow); border: 2px solid var(--accent);
}
.price-header { background: var(--accent); color: white; padding: 20px; text-align: center; }
.price-header h3 { margin: 0; font-size: 1.4rem; }
.price-header .tag { font-size: 0.9rem; background: rgba(0,0,0,0.2); display: inline-block; padding: 2px 10px; border-radius: 20px; margin-top: 5px; }
.price-body { padding: 40px; text-align: center; }
.price-row.highlight { color: #ef4444; }
.value.delete { text-decoration: line-through; color: #94a3b8; font-size: 1.2rem; }
.value.big { font-size: 3rem; font-weight: 900; line-height: 1; }
@media(max-width: 768px) {

    .value.big { font-size: 2.4rem; font-weight: 900; line-height: 1; }

}

.tax { font-size: 1rem; font-weight: bold; }
.price-detail { text-align: left; margin-top: 30px; list-style: none; padding: 0; border-top: 1px solid #e2e8f0; padding-top: 20px; }
.price-detail li { margin-bottom: 10px; font-weight: bold; }
.price-detail i { color: var(--accent); margin-right: 10px; }
.price-footer { background: #fff7ed; padding: 15px; font-size: 0.85rem; text-align: center; color: #9a3412; }

/* --- フォーム --- */
.contact { padding: 80px 0; background: white; }
.contact-wrapper { max-width: 700px; margin: 0 auto; }
.styled-form { background: var(--bg-light); padding: 40px; border-radius: 24px; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 8px; font-size: 1rem; }
.badge-req { background: #ef4444; color: white; font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; vertical-align: middle; margin-left: 5px; }
.badge-any { background: #94a3b8; color: white; font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; vertical-align: middle; margin-left: 5px; }
input, textarea {
    width: 100%; padding: 16px; border: 2px solid #cbd5e1; border-radius: 12px;
    font-size: 1rem; transition: 0.3s;
}
input:focus, textarea:focus { border-color: var(--blue); outline: none; background: white; }
.spam-check-box { background: white; padding: 20px; border-radius: 12px; border: 2px solid #e2e8f0; margin-bottom: 30px; }
.hint { font-size: 0.85rem; color: #64748b; margin-top: 5px; }

.btn-submit {
    width: 100%; background: var(--primary); color: white; border: none;
    padding: 24px; border-radius: 16px; cursor: pointer; transition: 0.3s;
    box-shadow: 0 10px 20px rgba(15,23,42,0.3);
}
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(15,23,42,0.4); }
.btn-submit .main-txt { display: block; font-size: 1.5rem; font-weight: 900; margin-bottom: 5px; }
.btn-submit .sub-txt { display: block; font-size: 0.85rem; opacity: 0.8; font-weight: normal; }

/* --- SP固定フッター --- */
.sp-sticky-nav {
    display: none; position: fixed; bottom: 0; left: 0; width: 100%; z-index: 999;
    background: white; border-top: 1px solid #e2e8f0; box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}
.sp-sticky-nav .sticky-btn {
    width: 50%; float: left; text-align: center; padding: 15px 0;
    text-decoration: none; font-weight: bold; font-size: 1rem;
}
.sticky-btn.line { background: #06c755; color: white; }
.sticky-btn.mail { background: white; color: var(--primary); }
/* --- フッターリンク調整 --- */
footer {
    padding: 50px 0px !important;
    background-color: var(--bg-light); /* 背景色を少しつけてエリアを明確化 */
    border-top: 1px solid #e2e8f0;
}

.footer-links {
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--blue);
    text-decoration: underline;
}

.separator {
    margin: 0 15px;
    color: #cbd5e1;
    font-weight: normal;
}

.copyright {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
}

/* スマホでのフッター調整 */
@media(max-width: 768px) {
    footer { padding-bottom: 100px; /* 固定フッターと被らないように余白追加 */ }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .separator { display: none; /* スマホでは縦並びにするので区切り線は消す */ }
}
/* --- スマホ最適化 (レスポンシブ) --- */
@media(max-width: 1024px) {
    .h1-main { font-size: 2.8rem; }
    .hero-visual-area { height: 400px; }
}

@media(max-width: 768px) {
    /* ヘッダーSP調整 */
    .header { height: 60px; }
    .logo-svg { width: 32px; height: 32px; }
    .logo-text { font-size: 1.1rem; }
    .logo-pro { font-size: 0.6rem; padding: 1px 4px; }
    
    .header-right { flex-direction: column-reverse; gap: 2px; align-items: flex-end; justify-content: center; }
    .btn-header-ol { 
        padding: 4px 10px; font-size: 0.75rem; border-width: 1px;
    }
    .btn-header-ol i { font-size: 0.8rem; }
    .btn-header-ol .btn-txt { font-size: 0.75rem; }
    
    .header-status { font-size: 10px; color: #64748b; margin-right: 2px; }
    .pulse { margin-right: 2px; font-size: 8px; }

    /* ヒーローSP調整 */
    .hero-ultimate { padding: 100px 0 60px; }
    .hero-layout { flex-direction: column; text-align: center; gap: 40px; }
    .hero-text-area { max-width: 100%; }
    .hero-badge { margin-left: auto; margin-right: auto; }
    
    .h1-sub { font-size: 1.3rem; }
    .h1-main { font-size: 2rem; line-height: 1.3; }
    .sp-only { display: block; } /* スマホでの改行を有効化 */
    
    .hero-lead { font-size: 0.95rem; line-height: 1.7; }
    
    .btn-line-rich { width: 100%; max-width: 100%; padding: 15px; flex-direction: row; text-align: left; }
    .btn-icon { font-size: 2.2rem; margin-right: 15px; }
    .btn-main { font-size: 1.1rem; }
    .btn-arrow { display: none; }
    .trust-note { font-size: 0.8rem; }
    
    /* ビジュアルエリア縮小 */
    .hero-visual-area { height: 280px; width: 100%; }
    .device-mockup { height: 240px; max-width: 90%; margin: 0 auto; }
    .pro-badge-float { bottom: -15px; right: 0; left: 0; margin: auto; width: fit-content; padding: 8px 16px; font-size: 0.8rem; }
    
    /* コンテンツ調整 */
    .pain-grid { grid-template-columns: 1fr; }
    .feature-list li { flex-direction: column; gap: 10px; text-align: center; }
    .f-num { margin: 0 auto; }
    .sp-sticky-nav { display: block; }
    .styled-form { padding: 20px; }
}