/* --- ベース設定 --- */
:root {
    --primary: #0f172a;   /* 濃紺 */
    --accent: #10b981;    /* エメラルドグリーン：改善・成長 */
    --accent-dark: #059669;
    --blue: #3b82f6;      /* 青 */
    --bg-light: #f8fafc;  /* 背景用グレー */
    --text: #334155;      /* 本文色 */
    --white: #ffffff;
    --shadow: 0 20px 40px -15px rgba(0,0,0,0.15);
    --gradient-green: linear-gradient(135deg, #10b981, #3b82f6);
}

* { 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: 80px;
    word-break: break-all;
    -webkit-font-smoothing: antialiased;
}

/* ユーティリティ */
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.ib { display: inline-block; }
.sp-only { display: none; }

/* --- ヘッダー --- */
.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(--accent); color: white; font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; margin-left: 5px; vertical-align: middle; }

.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: var(--accent); animation: pulseAnim 2s infinite; margin-right: 4px; }
@keyframes pulseAnim { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

/* --- ヒーローセクション (Custom) --- */
.hero-custom { padding: 140px 0 80px; background: #f0fdf4; /* 薄いグリーン背景 */ position: relative; overflow: hidden; }
.hero-bg-pattern {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(var(--accent) 1px, transparent 1px);
    background-size: 40px 40px; opacity: 0.1; 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: white; color: var(--accent-dark); font-weight: bold;
    padding: 6px 14px; border-radius: 30px; font-size: 0.85rem; margin-bottom: 25px;
    border: 2px solid var(--accent);
}
h1 { line-height: 1.3; margin-bottom: 30px; 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-green { background: var(--gradient-green); -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%, #d1fae5 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; }
.browser-mockup {
    width: 100%; max-width: 480px; height: 320px; background: white;
    border-radius: 12px; box-shadow: var(--shadow); border: 1px solid #e2e8f0;
    overflow: hidden; position: relative; display: flex; flex-direction: column;
}
.browser-header { height: 30px; background: #f1f5f9; display: flex; align-items: center; padding: 0 10px; gap: 6px; border-bottom: 1px solid #e2e8f0; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ef4444; } .yellow { background: #f59e0b; } .green { background: #22c55e; }
.browser-body { flex: 1; padding: 20px; background: #fff; position: relative; }

/* 構成要素ブロック */
.block { background: #f1f5f9; border-radius: 4px; margin-bottom: 15px; }
.header-block { height: 20px; width: 100%; }
.hero-block { height: 80px; width: 100%; }
.content-row { display: flex; gap: 15px; height: 120px; }
.side-block { width: 30%; height: 100%; }
.main-block { width: 70%; height: 100%; position: relative; display: flex; align-items: center; justify-content: center; border: 2px dashed #cbd5e1; }

/* 魔法のアニメーション */
.magic-wand {
    position: absolute; top: 10px; right: 10px; font-size: 2rem; color: var(--accent);
    animation: wandFloat 3s infinite ease-in-out; z-index: 10;
}
@keyframes wandFloat { 0%, 100% { transform: rotate(0deg) translateY(0); } 50% { transform: rotate(-10deg) translateY(-5px); } }

/* UI変化アニメーション */
.ui-element { width: 80%; height: 40px; border-radius: 4px; position: absolute; transition: 0.5s; }
.original { background: #cbd5e1; animation: fadeOutUI 4s infinite; }
.changed { background: var(--accent); box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4); opacity: 0; animation: fadeInUI 4s infinite; }

@keyframes fadeOutUI { 0%, 45% { opacity: 1; transform: scale(1); } 50%, 100% { opacity: 0; transform: scale(0.9); } }
@keyframes fadeInUI { 0%, 45% { opacity: 0; transform: scale(0.9); } 50%, 95% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }

.badge-float {
    position: absolute; bottom: 20px; right: -10px; background: var(--primary); color: white;
    padding: 10px 20px; border-radius: 30px; font-weight: bold; font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); animation: floatBadge 4s infinite ease-in-out;
}
@keyframes floatBadge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* --- 悩みセクション --- */
.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%, #d1fae5 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); }

/* --- サービス内容 --- */
.service { padding: 80px 0; background: var(--bg-light); }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.service-card { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: 0.3s; display: flex; gap: 10px; align-items: flex-start; }
.service-card:hover { transform: translateY(-3px); }
.service-card i { font-size: 2rem; color: var(--accent); flex-shrink: 0; }
.service-card h3 { margin: 0 0 10px 0; font-size: 1rem; color: var(--primary); }
.service-card p { margin: 0; font-size: 0.95rem; color: #64748b; }

/* --- 料金セクション --- */
.price { padding: 80px 0; background: white; }
.section-sub { text-align: center; margin-bottom: 40px; font-weight: bold; }
.price-list { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.price-item { flex: 1; max-width: 300px; background: var(--bg-light); border: 1px solid #e2e8f0; border-radius: 16px; padding: 30px; text-align: center; position: relative; }
.price-item.recommended { background: white; border: 3px solid var(--accent); box-shadow: var(--shadow); transform: scale(1.05); z-index: 1; }
.p-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: #ef4444; color: white; padding: 5px 15px; border-radius: 20px; font-weight: bold; font-size: 0.8rem; }
.p-name { font-weight: bold; margin-bottom: 15px; font-size: 1.1rem; }
.p-price { font-size: 2rem; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 15px; }
.p-price span { font-size: 0.9rem; }
.p-desc { font-size: 0.9rem; color: #64748b; }
.price-note { text-align: center; margin-top: 30px; font-size: 0.85rem; color: #94a3b8; }

/* --- フォーム --- */
.contact { padding: 80px 0; background: var(--bg-light); }
.contact-wrapper { max-width: 700px; margin: 0 auto; }
.styled-form { background: white; padding: 40px; border-radius: 24px; box-shadow: var(--shadow); }
.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; margin-left: 5px; vertical-align: middle; }
.badge-any { background: #94a3b8; color: white; font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; margin-left: 5px; vertical-align: middle; }
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(--accent); outline: none; }
.spam-check-box { background: #f0fdf4; padding: 20px; border-radius: 12px; border: 2px solid #bbf7d0; margin-bottom: 30px; }
.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; }

/* --- フッター --- */
footer { padding: 50px 0; background-color: white; 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(--accent); text-decoration: underline; }
.separator { margin: 0 15px; color: #cbd5e1; font-weight: normal; }
.copyright { font-size: 0.75rem; color: #64748b; margin: 0; }

/* --- スマホ用固定フッター --- */
.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);
}
.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); }


/* --- レスポンシブ (スマホ) --- */
@media(max-width: 1024px) {
    .h1-main { font-size: 2.8rem; }
    .hero-visual-area { height: 400px; }
}
@media(max-width: 768px) {
    .header { height: 60px; }
    .logo-svg { width: 32px; height: 32px; }
    .logo-text { font-size: 1.1rem; }
    .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; }
    .header-status { font-size: 10px; margin-right: 2px; }
    .pulse { margin-right: 2px; font-size: 8px; }

    .hero-custom { 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-arrow { display: none; }
    
    .hero-visual-area { height: 260px; width: 100%; }
    .browser-mockup { width: 90%; height: 240px; }
    .badge-float { right: 0; left: 0; margin: auto; width: fit-content; padding: 8px 16px; font-size: 0.8rem; bottom: -15px; }
    
    .pain-grid, .service-grid { grid-template-columns: 1fr; }
    .price-list { flex-direction: column; align-items: center; }
    .price-item.recommended { transform: scale(1); width: 100%; }
    
    .sp-sticky-nav { display: block; }
    .styled-form { padding: 20px; }
    
    .footer-links { display: flex; flex-direction: column; gap: 15px; }
    .separator { display: none; }
}