:root {
    /* Colors: Pop Tech Theme */
    --c-bg: #ffffff;
    --c-text: #1a202c;
    --c-text-light: #718096;
    
    /* Accents (Game/Pop vibe) */
    --c-blue: #3b82f6;   
    --c-blue-dark: #2563eb;
    --c-green: #10b981;  
    --c-yellow: #f59e0b; 
    --c-red: #ef4444;    
    --c-purple: #8b5cf6;
    
    /* Fonts */
    --f-main: 'M PLUS Rounded 1c', sans-serif;
    --f-en: 'Poppins', sans-serif;
    
    /* Shadows */
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--f-main);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Typography */
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--f-main); font-weight: 800; letter-spacing: 0.02em; }
.container { width: 90%; max-width: 1080px; margin: 0 auto; }
.text-center { text-align: center; }

.legal-container h1 { font-size: 2.5rem; }

@media (max-width: 768px) {
    .legal-container h1 { font-size: 1.6rem; }
}

/* Background Shapes (Floaty) */
.bg-shape { position: fixed; border-radius: 50%; z-index: -1; filter: blur(80px); opacity: 0.5; }
.shape-1 { width: 500px; height: 500px; background: #e0e7ff; top: -10%; left: -10%; animation: float 10s infinite alternate; }
.shape-2 { width: 400px; height: 400px; background: #fef3c7; bottom: -10%; right: -10%; animation: float 12s infinite alternate-reverse; }
.shape-3 { width: 300px; height: 300px; background: #d1fae5; top: 40%; left: 30%; animation: float 15s infinite alternate; }
@keyframes float { 0% { transform: translate(0,0); } 100% { transform: translate(30px, 30px); } }

/* Buttons */
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--c-text); color: #fff;
    padding: 18px 45px; border-radius: 50px;
    font-weight: bold; font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-primary:hover { transform: scale(1.05); background: var(--c-blue-dark); }
.bounce-hover:hover { animation: bounceBtn 0.5s; }
@keyframes bounceBtn { 0%, 100% { transform: scale(1.05); } 50% { transform: scale(0.95); } }

.btn-line-lg {
    background: #06c755; color: #fff; padding: 18px 50px; border-radius: 50px;
    font-weight: bold; font-size: 1.1rem; display: inline-flex; align-items: center; gap: 10px;
    box-shadow: 0 10px 25px rgba(6, 199, 85, 0.3);
}
.btn-line-lg:hover { transform: scale(1.02); }

.btn-outline {
    display: inline-block; border: 2px solid var(--c-green); color: var(--c-green);
    padding: 12px 30px; border-radius: 30px; font-weight: bold;
}
.btn-outline:hover { background: var(--c-green); color: #fff; }

/* Header */
.header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
.header-inner {
    display: flex; justify-content: space-between; align-items: center;
    height: 70px; padding: 0 5%;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
    width: 35px; height: 35px; background: var(--c-yellow); color: #fff;
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; transform: rotate(-10deg);
}
.logo-text { font-family: var(--f-en); font-weight: 800; font-size: 1.2rem; color: var(--c-text); letter-spacing: -0.02em; }
.logo-sub { font-weight: 400; color: var(--c-text-light); margin-left: 5px; font-size: 0.8rem; }

.pc-nav { display: flex; gap: 30px; align-items: center; }
.nav-link { font-weight: bold; font-size: 0.9rem; color: var(--c-text); }
.nav-link:hover { color: var(--c-blue); }
.nav-btn {
    background: var(--c-green); color: #fff; padding: 10px 25px; border-radius: 50px;
    font-weight: bold; font-size: 0.9rem; display: flex; align-items: center; gap: 8px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(255, 255, 255, 0.98); z-index: 1500;
    opacity: 0; pointer-events: none; transition: 0.4s ease;
    display: flex; align-items: center; justify-content: center;
}
.mobile-menu.active { opacity: 1; pointer-events: auto; }
.mobile-nav { display: flex; flex-direction: column; gap: 30px; text-align: center; }
.mobile-link { font-size: 1.5rem; font-weight: bold; color: var(--c-text); font-family: var(--f-en); }
.mobile-link .jp { display: block; font-size: 0.9rem; color: var(--c-text-light); font-weight: normal; margin-top: 5px; font-family: var(--f-main); }
.mobile-btn { background: var(--c-green); color: #fff; padding: 15px 40px; border-radius: 50px; font-weight: bold; font-size: 1.1rem; box-shadow: 0 10px 20px rgba(6, 199, 85, 0.2); }

.hamburger { display: none; cursor: pointer; z-index: 2000; }
.hamburger span { display: block; width: 25px; height: 3px; background: var(--c-text); margin: 5px 0; transition: 0.4s; border-radius: 3px; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
@media (max-width: 768px) { .pc-nav { display: none; } .hamburger { display: block; } }

/* Hero */
.hero { padding: 160px 0 100px; }
.hero-container { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.hero-content { flex: 1; }
.hero-label {
    display: inline-flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: bold;
    background: #f3f4f6; padding: 5px 15px; border-radius: 20px; margin-bottom: 20px;
}
.badge-new { background: var(--c-yellow); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; }
.hero-title { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; color: var(--c-text); }
.hero-lead { color: var(--c-text-light); margin-bottom: 40px; font-size: 1.1rem; }
.hero-trust { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: bold; }
.text-green { color: var(--c-green); font-size: 1.2rem; }

/* Hero Visual (Cheat Box) */
.hero-visual { flex: 1; display: flex; justify-content: center; position: relative; height: 400px; }
.cheat-box-wrapper { position: relative; width: 320px; height: 360px; }
.cheat-box {
    width: 100%; height: 100%; background: #fff; border-radius: 30px;
    box-shadow: var(--shadow-float); border: 4px solid var(--c-text);
    overflow: hidden; position: relative; z-index: 10;
}
.box-lid { height: 60px; background: var(--c-text); display: flex; align-items: center; justify-content: center; }
.lid-icon { color: var(--c-yellow); font-size: 1.5rem; }
.box-body { padding: 30px; display: flex; flex-direction: column; gap: 15px; justify-content: center; height: calc(100% - 60px); background: #f9fafb; }
.item-card {
    background: #fff; padding: 15px; border-radius: 15px; font-weight: bold;
    display: flex; align-items: center; gap: 15px; box-shadow: var(--shadow-card);
    transform: translateX(100px); opacity: 0; /* Animation Start */
}
.item-card i { font-size: 1.2rem; }
.item-1 i { color: var(--c-blue); }
.item-2 i { color: var(--c-purple); }
.item-3 i { color: var(--c-green); }

.pop-bubble {
    position: absolute; top: 20px; right: -40px; background: var(--c-red); color: #fff;
    padding: 10px 20px; border-radius: 50px; font-weight: bold; font-size: 0.9rem;
    box-shadow: var(--shadow-card); transform: rotate(10deg); z-index: 20;
    animation: popScale 3s infinite ease-in-out;
}
@keyframes popScale { 0%, 100% { transform: rotate(10deg) scale(1); } 50% { transform: rotate(10deg) scale(1.1); } }

/* Section Common */
.section { padding: 100px 0; }
.section-title { font-size: 2.2rem; margin-bottom: 15px; }
.section-desc { color: var(--c-text-light); margin-bottom: 50px; }

/* Transparency */
.transparency { background: #f8fafc; }
.transparency-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.t-card {
    background: #fff; padding: 40px 30px; border-radius: 20px; text-align: center;
    box-shadow: var(--shadow-card); transition: 0.3s;
}
.t-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-float); }
.t-icon {
    width: 70px; height: 70px; border-radius: 25px; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #fff;
    transform: rotate(-5deg);
}
.blue { background: var(--c-blue); }
.yellow { background: var(--c-yellow); }
.red { background: var(--c-red); }

/* Chat Flow */
.chat-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.tag { font-family: var(--f-en); font-weight: bold; color: var(--c-blue); background: #eff6ff; padding: 5px 10px; border-radius: 5px; font-size: 0.8rem; display: inline-block; margin-bottom: 15px; }

.phone-mockup {
    width: 300px; height: 550px; background: #fff; border-radius: 40px;
    box-shadow: var(--shadow-float); border: 8px solid #f3f4f6; overflow: hidden; margin: 0 auto;
}
.screen { height: 100%; display: flex; flex-direction: column; background: #cce9ff; }
.chat-header { background: rgba(255,255,255,0.9); padding: 15px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.c-avatar { width: 35px; height: 35px; background: var(--c-text); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: bold; }
.c-name { font-size: 0.8rem; font-weight: bold; }
.chat-timeline { padding: 20px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }
.msg { display: flex; width: 100%; opacity: 0; transform: translateY(10px); }
.left { justify-content: flex-start; }
.right { justify-content: flex-end; }
.bubble { max-width: 80%; padding: 12px 18px; border-radius: 20px; font-size: 0.85rem; line-height: 1.4; position: relative; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.left .bubble { background: #fff; border-top-left-radius: 0; }
.right .bubble { background: #86efac; border-top-right-radius: 0; }
.sticker { justify-content: center; }
.bubble-sticker { font-weight: bold; color: #fff; background: var(--c-blue); padding: 8px 20px; border-radius: 50px; font-size: 0.9rem; transform: rotate(-3deg); box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3); }

/* Service Cards */
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.s-card {
    background: #fff; border-radius: 20px; padding: 40px 30px; text-align: center;
    border: 2px solid #f3f4f6; transition: 0.3s; position: relative;
}
.s-card:hover { border-color: var(--c-blue); transform: translateY(-5px); box-shadow: var(--shadow-card); }
.s-icon-wrapper {
    width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.i-shop { background: #eff6ff; color: var(--c-blue); }
.i-tool { background: #fef3c7; color: var(--c-yellow); }
.i-shield { background: #d1fae5; color: var(--c-green); }

.featured { border: 2px solid var(--c-yellow); background: #fffbeb; }
.badge-rec {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--c-yellow); color: #fff; font-size: 0.8rem; font-weight: bold;
    padding: 5px 20px; border-radius: 20px; box-shadow: 0 5px 10px rgba(245, 158, 11, 0.3);
}

/* Plan */
.plan { background: #fff; }
.plan-wrapper { max-width: 600px; margin: 0 auto; }
.plan-card {
    background: #fff; border-radius: 30px; overflow: hidden;
    box-shadow: var(--shadow-float); border: 2px solid #f3f4f6;
}
.plan-head { background: var(--c-text); color: #fff; padding: 40px; text-align: center; }
.plan-head h3 { margin-bottom: 5px; font-size: 1.5rem; }
.plan-price { padding: 30px; text-align: center; border-bottom: 2px dashed #e5e7eb; background: #f8fafc; }
.price-row { display: flex; flex-direction: column; }
.price-row .label { font-size: 0.8rem; color: var(--c-text-light); }
.price-row .val { font-size: 2rem; font-weight: 800; font-family: var(--f-en); color: var(--c-text); }
.price-plus { font-size: 1.5rem; color: var(--c-blue); margin: 10px 0; }
.plan-body { padding: 40px; }
.plan-body li { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; font-weight: bold; font-size: 1.1rem; }
.plan-body i { color: var(--c-green); background: #ecfdf5; padding: 5px; border-radius: 50%; }
.plan-note {
    background: #fffbeb; color: #b45309; padding: 20px; text-align: center; font-size: 0.95rem;
    display: flex; gap: 15px; align-items: center; justify-content: center;
}
.plan-note i { font-size: 1.5rem; }

/* CTA */
.cta { background: #f8fafc; }
.cta-box {
    background: #fff; border-radius: 40px; padding: 80px 40px; text-align: center;
    box-shadow: var(--shadow-float); border: 1px solid #e5e7eb;
}
.cta-title { font-size: 2.5rem; margin-bottom: 20px; }
.cta-text {
    padding: 10px 0px;
    margin: 10px 0px;
}
.limit-text { margin-top: 20px; color: var(--c-red); font-weight: bold; font-size: 0.9rem; }

/* Sticky CTA */
.sticky-cta {
    position: fixed; bottom: 30px; right: 30px; z-index: 900;
    transform: translateY(150%); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-btn {
    background: var(--c-text); color: #fff; padding: 12px 25px; border-radius: 50px;
    display: flex; align-items: center; gap: 10px; font-weight: bold;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); transition: 0.3s;
}
.sticky-btn:hover { transform: scale(1.05); background: var(--c-blue); }
.sticky-icon { font-size: 1.2rem; }

/* Footer */
.footer { padding: 30px; text-align: center; color: var(--c-text-light); font-size: 0.8rem; background: #fff; border-top: 1px solid #f3f4f6; }

/* ------------------------------------------- */
/* ★ Mobile Responsive (ここから下を強化！) ★ */
/* ------------------------------------------- */
@media (max-width: 768px) {
    /* 1. レイアウトの基本調整 */
    .hero-container, .transparency-grid, .chat-layout, .service-cards { 
        flex-direction: column; 
        grid-template-columns: 1fr; 
    }
    .hero-visual { display: none; } /* スマホではビジュアル非表示でシンプルに */

    /* 2. 余白（Padding）の削減 */
    .hero { padding: 100px 0 60px; } /* トップの余白を減らす */
    .section { padding: 60px 0; } /* セクション間の余白を減らす */
    .cta-box { padding: 50px 20px; } /* CTAボックスの内側を狭く */
    .t-card, .s-card, .plan-card { padding: 30px 20px; } /* カードの余白も減らす */
    .plan-head, .plan-body { padding: 30px 20px; }
    
    /* 3. 見出し（Typography）のバランス調整 */
    .hero-title { font-size: 2.4rem; line-height: 1.3; } /* 3.5remから縮小 */
    .section-title { font-size: 1.6rem; } /* 2.2remから縮小 */
    .cta-title { font-size: 1.6rem; }

    /* 4. ボタンの余白調整（押しやすく、はみ出さない） */
    .btn-primary, .btn-line-lg {
        padding: 14px 25px; /* 左右の余白を減らす */
        font-size: 1rem;
        width: 100%; /* 横幅いっぱいに広げて押しやすく */
        justify-content: center;
        box-sizing: border-box; /* はみ出し防止 */
    }
    
    .hero-cta-group { 
        width: 100%; 
        align-items: center; /* 中央寄せ */
    }
    .hero-trust { margin-top: 10px; justify-content: center; }

    /* 5. その他パーツ */
    .chat-layout { gap: 40px; }
    .phone-mockup { margin: 0 auto; } /* 中央配置 */
}

/* --- 記事内のデザイン見本・コード表示用 --- */
.demo-area {
    margin: 30px 0;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    overflow: hidden;
}
.demo-label {
    background: #e2e8f0;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #475569;
}
.demo-view {
    padding: 30px;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    /* ここに実際のデザインが表示される */
}
.code-area {
    background: #1e293b;
    padding: 20px;
    position: relative;
}
.code-area textarea {
    width: 100%;
    height: 150px;
    background: transparent;
    border: none;
    color: #a5b4fc;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: none;
    outline: none;
}
.copy-notice {
    text-align: right;
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 5px;
}