@charset "UTF-8";

/* ==========================================================================
   1. CSS Variables & Reset
   ========================================================================== */
:root {
    /* カラーパレット (Light Mode - デフォルト) */
    --primary-gradient: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%);
    --secondary-gradient: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
    --primary-color: #2563EB;
    --accent-color: #F59E0B;
    
    /* 背景色と文字色を変数化 */
    --bg-main: #FFFFFF;        /* 全体の基本背景 */
    --bg-light: #F9FAFB;       /* セクション背景など少しグレー */
    --bg-hero: #F0F5FF;        /* ヒーロー等の薄い青背景 */
    --bg-card: #FFFFFF;        /* カードの背景 */
    --bg-icon: #E0F2FE;        /* アイコンの背景 */
    
    --text-main: #111827;      /* メインテキスト */
    --text-sub: #4B5563;       /* サブテキスト */
    --text-inverse: #FFFFFF;   /* 反転テキスト（ボタン内など常に白） */
    
    --border-color: #E5E7EB;   /* 境界線 */
    --dark-bg: #1F2937;        /* フッターや料金の背景 */
    --header-bg: rgba(255, 255, 255, 0.9);
    
    --container-width: 1100px;
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 25px 50px -12px rgba(37, 99, 235, 0.25);
    --shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-gradient: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
        --secondary-gradient: linear-gradient(135deg, #FBBF24 0%, #F97316 100%);
        --primary-color: #60A5FA;
        --accent-color: #FBBF24;
        
        --bg-main: #111827;
        --bg-light: #1F2937;
        --bg-hero: #172554;
        --bg-card: #374151;
        --bg-icon: rgba(59, 130, 246, 0.2);
        
        --text-main: #F9FAFB;
        --text-sub: #D1D5DB;
        --text-inverse: #FFFFFF;
        
        --border-color: #4B5563;
        --dark-bg: #030712;
        --header-bg: rgba(17, 24, 39, 0.9);
        
        --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
        --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
        --shadow-hover: 0 25px 50px -12px rgba(96, 165, 250, 0.25);
        --shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    }
}

html.dark, html[data-theme="dark"] {
    --primary-gradient: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
    --secondary-gradient: linear-gradient(135deg, #FBBF24 0%, #F97316 100%);
    --primary-color: #60A5FA;
    --accent-color: #FBBF24;
    
    --bg-main: #111827;
    --bg-light: #1F2937;
    --bg-hero: #172554;
    --bg-card: #374151;
    --bg-icon: rgba(59, 130, 246, 0.2);
    
    --text-main: #F9FAFB;
    --text-sub: #D1D5DB;
    --text-inverse: #FFFFFF;
    
    --border-color: #4B5563;
    --dark-bg: #030712;
    --header-bg: rgba(17, 24, 39, 0.9);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 25px 50px -12px rgba(96, 165, 250, 0.25);
    --shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   2. Base Styles & Layout
   ========================================================================== */
body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: var(--bg-main);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.3;
    font-weight: 700;
}

p {
    margin: 0 0 1.5em;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: 100px 0;
}

/* ==========================================================================
   3. Common Components
   ========================================================================== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

.section-title-custom {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-custom p {
    color: #0d6efd;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-family: Arial, sans-serif;
}

.section-title-custom h2 {
    font-weight: 700;
    font-size: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: var(--secondary-gradient);
    color: var(--text-inverse);
    border: none;
}

.btn-outline {
    background: var(--bg-main);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--bg-hero);
}

.badge {
    display: inline-block;
    background: var(--bg-icon);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.wave-decoration {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.wave-decoration svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
    transition: fill 0.3s ease;
}

.wave-top {
    top: 0;
    transform: rotate(180deg);
}

.wave-bottom {
    bottom: 0;
}

/* ==========================================================================
   4. Header & Footer
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

footer {
    background-color: var(--dark-bg);
    color: var(--text-sub);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ==========================================================================
   5. Page Sections
   ========================================================================== */
.hero {
    position: relative;
    background: var(--bg-hero);
    padding-top: 160px;
    padding-bottom: 120px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(79, 70, 229, 0.05));
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 24px;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.hero h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p.sub-copy {
    font-size: 1.2rem;
    color: var(--text-sub);
    margin-bottom: 40px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.hero-visual-frame {
    margin: 50px auto 0;
    background: var(--bg-card);
    padding: 10px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-modal);
    max-width: 850px;
    position: relative;
    border: 1px solid var(--border-color);
}

.hero-visual {
    background: var(--bg-light);
    aspect-ratio: 16/9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-sub);
    font-size: 1.2rem;
    overflow: hidden;
    border: 2px dashed var(--border-color);
}

.hero-listing {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0 60px;
    text-align: center;
}

[data-bs-theme="dark"] .hero-listing {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
}

.hero-listing h1 {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero-listing h1 span {
    color: #0d6efd;
}

.problems {
    background-color: var(--bg-main);
    position: relative;
    transition: background-color 0.3s ease;
}

.problem-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.problem-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--border-color);
}

.problem-card p {
    margin: 0;
    font-weight: 500;
    font-size: 1.05rem;
}

.solution-bridge {
    margin-top: 50px;
    padding: 30px;
    background: var(--bg-icon);
    border-radius: var(--border-radius-md);
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    border: 2px dashed var(--primary-color);
    opacity: 0.9;
}

.features {
    background-color: var(--bg-light);
    position: relative;
    transition: background-color 0.3s ease;
}

.features-wrap {
    background-color: var(--bs-tertiary-bg);
    padding: 80px 0;
    border-radius: 20px;
    margin: 40px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.feature-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-main);
    z-index: -1;
    line-height: 1;
}

.feature-icon {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: var(--bg-icon);
    color: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.feature-icon-box {
    width: 80px;
    height: 80px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #0d6efd;
}

[data-bs-theme="dark"] .feature-icon-box {
    background: #2b3035;
    color: #6ea8fe;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.feature-desc {
    color: var(--text-sub);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.use-cases {
    background: var(--bg-main);
    transition: background-color 0.3s ease;
}

.case-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.case-card {
    flex: 1 1 300px;
    max-width: 350px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.case-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.case-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.case-text {
    font-weight: 700;
    color: var(--text-main);
}

.case-tag {
    display: block;
    font-size: 0.75rem;
    color: var(--text-sub);
    margin-bottom: 4px;
    font-weight: normal;
}

.plugin-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    height: 100%;
    overflow: hidden;
    background: var(--bs-body-bg);
    will-change: transform, box-shadow;
    backface-visibility: hidden;
}

[data-bs-theme="dark"] .plugin-card {
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.plugin-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #0d6efd;
}

[data-bs-theme="dark"] .plugin-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border-color: #0d6efd;
}

.plugin-card .card-img-wrapper {
    height: 220px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

[data-bs-theme="dark"] .plugin-card .card-img-wrapper {
    background: #2b3035;
    border-bottom-color: rgba(255,255,255,0.05);
}

.plugin-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: #ffffff;
}

.plugin-card .badge-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #0d6efd;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 2;
    font-size: 0.9rem;
}

[data-bs-theme="dark"] .plugin-card .badge-price {
    background: rgba(33, 37, 41, 0.95);
    color: #6ea8fe;
}

.plugin-card .card-body {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.plugin-card .card-title {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.plugin-card .catch-copy {
    font-size: 0.85rem;
    color: #0d6efd;
    font-weight: bold;
    margin-bottom: 1rem;
}

[data-bs-theme="dark"] .plugin-card .catch-copy {
    color: #6ea8fe;
}

.plugin-card .card-text {
    color: var(--bs-secondary-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.plugin-card .btn-readmore {
    margin-top: auto;
    border-radius: 8px;
    font-weight: bold;
    padding: 10px;
    transition: all 0.3s;
}

.faq {
    background-color: var(--bg-light);
    transition: background-color 0.3s ease;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

details.faq-item {
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s;
}

details.faq-item[open] {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

summary.faq-q {
    padding: 20px 25px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
}

summary.faq-q::-webkit-details-marker {
    display: none;
}

summary.faq-q::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s;
}

details[open] summary.faq-q::after {
    transform: rotate(45deg);
}

.faq-a {
    padding: 0 25px 25px;
    color: var(--text-sub);
    line-height: 1.8;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.pricing {
    background: var(--dark-bg);
    color: var(--text-inverse);
    text-align: center;
    position: relative;
    transition: background-color 0.3s ease;
}

.pricing-content {
    max-width: 600px;
    margin: 0 auto;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius-lg);
    padding: 50px 30px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.price-display {
    font-size: 3rem;
    font-weight: 900;
    margin: 20px 0;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-sub {
    opacity: 0.7;
    font-size: 0.9rem;
    color: var(--text-inverse);
}

.cta-bottom {
    background: var(--primary-gradient);
    color: var(--text-inverse);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-bottom::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-bottom h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-inverse);
}

.cta-bottom .btn-outline {
    background: transparent;
    color: var(--text-inverse);
    border-color: var(--text-inverse);
}

.cta-bottom .btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

.cta-bottom .btn-primary {
    background: var(--text-inverse);
    color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ==========================================================================
   6. Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-visual-frame {
        margin-top: 30px;
        padding: 5px;
    }
    
    .feature-number {
        opacity: 0.3;
        font-size: 3rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        box-sizing: border-box;
    }
}