/**
 * Robot Lease Navi - Base CSS (全ページ共通)
 * Design: White base + Green accent (#059669) + Cyan secondary (#0891b2)
 * Icons: Lucide Icons
 * Fonts: Noto Sans JP + system-ui
 */

/* ============================================================
   1. CSS Variables
   ============================================================ */

:root {
    /* Accent colors */
    --accent-primary: #059669;
    --accent-primary-dark: #047857;
    --accent-primary-light: #d1fae5;
    --accent-secondary: #0891b2;
    --accent-secondary-dark: #0e7490;
    --accent-secondary-light: #cffafe;
    --accent-warning: #d97706;
    --accent-warning-light: #fef3c7;
    --accent-danger: #dc2626;
    --accent-danger-dark: #b91c1c;
    --accent-danger-light: #fee2e2;
    --accent-info: #2563eb;
    --accent-info-light: #dbeafe;

    /* Background */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafb;
    --bg-surface: #f1f5f9;
    --bg-dark: #0d1117;
    --bg-tertiary: #e8edf2;

    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    --text-tertiary: #94a3b8;

    /* Border */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-strong: #cbd5e1;
    --border-color: #e2e8f0;

    /* Shadow */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Typography */
    --font-sans: 'LINE Seed JP', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    /* Layout */
    --container: 1140px;
    --header-h: 64px;
    --sidebar-w: 240px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
    --transition: 0.2s ease;

    /* Z-index */
    --z-dropdown: 1000;
    --z-header: 1100;
    --z-drawer: 1200;
    --z-modal: 2000;
    --z-toast: 2100;
}

/* ============================================================
   2. Dark Mode Variables
   ============================================================ */

[data-theme="dark"] {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-surface: #21262d;
    --bg-dark: #010409;
    --bg-tertiary: #30363d;

    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --text-tertiary: #6e7681;

    --border: #30363d;
    --border-light: #21262d;
    --border-strong: #484f58;
    --border-color: #30363d;

    --accent-primary-light: rgba(5, 150, 105, 0.15);
    --accent-secondary-light: rgba(8, 145, 178, 0.15);
    --accent-warning-light: rgba(217, 119, 6, 0.15);
    --accent-danger-light: rgba(220, 38, 38, 0.15);
    --accent-info-light: rgba(37, 99, 235, 0.15);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   3. Reset & Base
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    font-size: 16px;
    background: var(--bg-dark);
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--accent-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    font-family: var(--font-sans);
    cursor: pointer;
}

input, textarea, select {
    font-family: var(--font-sans);
}

.lucide-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ============================================================
   4. Layout / Container
   ============================================================ */

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.nowrap {
    white-space: nowrap;
}

.sp-only {
    display: none !important;
}

.pc-only {
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================================
   5. Header
   ============================================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: var(--z-header);
    transition: background var(--transition-base), border-color var(--transition-base);
}

[data-theme="dark"] .site-header {
    background: rgba(13, 17, 23, 0.9);
}

.site-header .container {
    height: 100%;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 16px;
}

.header-logo,
.site-header .site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo:hover,
.site-header .site-logo:hover {
    color: var(--text-primary);
}

.logo-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--accent-primary);
    border-radius: var(--radius-md);
    color: var(--text-white);
    flex-shrink: 0;
}

.logo-badge .lucide-icon {
    width: 18px;
    height: 18px;
}

.logo-text {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.logo-text .logo-accent {
    color: var(--accent-primary);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.header-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.header-nav a:hover {
    color: var(--accent-primary);
    background: var(--accent-primary-light);
}

.btn-consult-header {
    background: var(--accent-primary) !important;
    color: var(--text-white) !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-full) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
}

.btn-consult-header:hover {
    background: var(--accent-primary-dark) !important;
}

.header-theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.header-theme-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.header-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.header-nav-link:hover,
.header-nav-link.is-active {
    color: var(--accent-primary);
    background: var(--accent-primary-light);
}

.header-nav-link .lucide-icon {
    width: 14px;
    height: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Theme toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.theme-toggle .lucide-icon {
    width: 16px;
    height: 16px;
}

[data-theme="light"] .icon-moon,
[data-theme="dark"] .icon-sun {
    display: none;
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: var(--header-h);
    left: 0;
    height: 2px;
    background: var(--accent-primary);
    width: 0%;
    z-index: var(--z-header);
    transition: width 0.1s linear;
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color var(--transition-fast);
}

.hamburger-btn:hover {
    border-color: var(--accent-primary);
}

.hamburger-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.hamburger-btn.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   6. Drawer (Mobile Menu)
   ============================================================ */

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-drawer);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: var(--bg-primary);
    z-index: calc(var(--z-drawer) + 1);
    overflow-y: auto;
    transition: right var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.drawer.is-open {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.drawer-close:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.drawer-close .lucide-icon {
    width: 16px;
    height: 16px;
}

.drawer-nav {
    padding: 16px;
    flex: 1;
}

.drawer-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-fast);
    text-decoration: none;
    margin-bottom: 4px;
}

.drawer-nav-link:hover,
.drawer-nav-link.is-active {
    color: var(--accent-primary);
    background: var(--accent-primary-light);
}

.drawer-nav-link .lucide-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.drawer-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

/* ============================================================
   7. Buttons
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
}

.btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.btn .lucide-icon {
    width: 15px;
    height: 15px;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--text-white);
    border-color: var(--accent-primary);
}

.btn-primary:hover {
    background: var(--accent-primary-dark);
    border-color: var(--accent-primary-dark);
    color: var(--text-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-secondary);
    border-color: var(--accent-secondary);
}

.btn-secondary:hover {
    background: var(--accent-secondary-light);
    color: var(--accent-secondary-dark);
    border-color: var(--accent-secondary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--accent-primary-light);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.btn-success {
    background: var(--accent-primary);
    color: var(--text-white);
    border-color: var(--accent-primary);
}

.btn-success:hover {
    background: var(--accent-primary-dark);
    border-color: var(--accent-primary-dark);
    color: var(--text-white);
}

.btn-danger {
    background: var(--accent-danger);
    color: var(--text-white);
    border-color: var(--accent-danger);
}

.btn-danger:hover {
    background: var(--accent-danger-dark);
    color: var(--text-white);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-block {
    width: 100%;
}

/* ============================================================
   8. Form Elements
   ============================================================ */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-label.required::after {
    content: '*';
    color: var(--accent-danger);
    margin-left: 4px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.5;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    min-height: 120px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.form-select {
    display: block;
    width: 100%;
    padding: 10px 36px 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.5;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color var(--transition-fast);
}

.form-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-error {
    font-size: 12px;
    color: var(--accent-danger);
    margin-top: 4px;
}

/* ============================================================
   9. Cards
   ============================================================ */

.card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-header-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

/* ============================================================
   10. Alerts (背景色のみ、border-left禁止)
   ============================================================ */

.alert {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert .lucide-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-success {
    background: var(--accent-primary-light);
    color: var(--accent-primary-dark);
}

.alert-danger {
    background: var(--accent-danger-light);
    color: var(--accent-danger-dark);
}

.alert-warning {
    background: var(--accent-warning-light);
    color: #92400e;
}

.alert-info {
    background: var(--accent-secondary-light);
    color: var(--accent-secondary-dark);
}

/* ============================================================
   11. Badges
   ============================================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.badge .lucide-icon {
    width: 11px;
    height: 11px;
}

.badge-primary {
    background: var(--accent-primary-light);
    color: var(--accent-primary-dark);
}

.badge-secondary {
    background: var(--accent-secondary-light);
    color: var(--accent-secondary-dark);
}

.badge-success {
    background: var(--accent-primary-light);
    color: var(--accent-primary-dark);
}

.badge-danger {
    background: var(--accent-danger-light);
    color: var(--accent-danger-dark);
}

.badge-warning {
    background: var(--accent-warning-light);
    color: #92400e;
}

.badge-gray {
    background: var(--bg-surface);
    color: var(--text-secondary);
}

.badge-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

/* ============================================================
   12. Table
   ============================================================ */

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: var(--bg-secondary);
}

/* ============================================================
   13. Toast Notifications
   ============================================================ */

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    pointer-events: auto;
    max-width: 360px;
    min-width: 240px;
    animation: toastSlideIn 0.3s ease;
}

.toast.is-hiding {
    animation: toastSlideOut 0.3s ease forwards;
}

.toast .lucide-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.toast-success {
    background: var(--accent-primary-light);
    border-color: var(--accent-primary);
    color: var(--accent-primary-dark);
}

.toast-error {
    background: var(--accent-danger-light);
    border-color: var(--accent-danger);
    color: var(--accent-danger-dark);
}

.toast-warning {
    background: var(--accent-warning-light);
    border-color: var(--accent-warning);
    color: #92400e;
}

.toast-info {
    background: var(--accent-secondary-light);
    border-color: var(--accent-secondary);
    color: var(--accent-secondary-dark);
}

.toast-close {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    opacity: 0.6;
    flex-shrink: 0;
    border-radius: 4px;
    transition: opacity var(--transition-fast);
}

.toast-close:hover {
    opacity: 1;
}

.toast-close .lucide-icon {
    width: 14px;
    height: 14px;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* ============================================================
   14. Footer
   ============================================================ */

.site-footer {
    background: var(--bg-dark);
    color: var(--text-muted);
    padding: 64px 0 0;
}

[data-theme="dark"] .site-footer {
    background: #010409;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo,
.site-footer .site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #e6edf3;
    font-weight: 700;
    font-size: 16px;
}

.footer-logo-badge,
.site-footer .logo-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent-primary);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.footer-logo-badge .lucide-icon {
    width: 16px;
    height: 16px;
}

.footer-logo-text {
    font-size: 16px;
    font-weight: 700;
    color: #e6edf3;
    letter-spacing: -0.02em;
}

.footer-brand-desc,
.footer-brand p {
    font-size: 13px;
    line-height: 1.7;
    color: #6e7681;
}

.footer-col-title,
.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.footer-links,
.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a,
.footer-col ul a {
    font-size: 13px;
    color: #6e7681;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-col ul a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    border-top: 1px solid #21262d;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom-links,
.footer-bottom .footer-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom-links a,
.footer-bottom .footer-links a {
    font-size: 12px;
    color: #6e7681;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover,
.footer-bottom .footer-links a:hover {
    color: var(--accent-primary);
}

.footer-copyright,
.footer-bottom > span {
    font-size: 12px;
    color: #484f58;
}

/* ============================================================
   15. FAB CTA Button
   ============================================================ */

.fab-cta {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: calc(var(--z-dropdown) + 1);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    background: var(--accent-primary);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.4);
    transition: all var(--transition-base);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
}

.fab-cta.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-cta:hover {
    background: var(--accent-primary-dark);
    color: var(--text-white);
    box-shadow: 0 6px 24px rgba(5, 150, 105, 0.5);
    transform: translateY(-2px);
}

.fab-cta .lucide-icon {
    width: 16px;
    height: 16px;
}

/* ============================================================
   16. FAQ Accordion
   ============================================================ */

.faq-section {
    padding: 80px 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-item.is-open {
    border-color: var(--accent-primary);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-primary);
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    transition: background var(--transition-fast);
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-item.is-open .faq-question {
    background: var(--accent-primary-light);
    color: var(--accent-primary-dark);
}

.faq-question-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-surface);
    transition: transform var(--transition-base), background var(--transition-fast);
}

.faq-question-icon .lucide-icon {
    width: 12px;
    height: 12px;
}

.faq-item.is-open .faq-question-icon {
    transform: rotate(180deg);
    background: var(--accent-primary);
    color: var(--text-white);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-item.is-open .faq-answer {
    max-height: 600px;
}

.faq-answer-inner {
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}

/* ============================================================
   17. Section Common
   ============================================================ */

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--accent-primary-light);
    color: var(--accent-primary-dark);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

.section-eyebrow .lucide-icon {
    width: 12px;
    height: 12px;
}

.section-header h2 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.25;
    margin-bottom: 14px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-padding {
    padding: 80px 0;
}

/* Filter tabs (共通) */
.filter-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.filter-tab:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.filter-tab.is-active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
    font-weight: 700;
}

/* Empty state (共通) */
.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--text-muted);
}

.empty-state-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--text-muted);
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 16px;
}

/* ============================================================
   18. Utility Classes
   ============================================================ */

.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }

.text-primary    { color: var(--text-primary); }
.text-secondary  { color: var(--text-secondary); }
.text-muted      { color: var(--text-muted); }
.text-accent     { color: var(--accent-primary); }
.text-danger     { color: var(--accent-danger); }
.text-success    { color: var(--accent-primary); }
.text-warning    { color: var(--accent-warning); }

.text-xs     { font-size: 11px; }

.font-bold   { font-weight: 700; }
.font-medium { font-weight: 500; }

.mt-2  { margin-top: 8px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-2  { margin-bottom: 8px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-3  { margin-bottom: 12px; }
.mb-8  { margin-bottom: 32px; }

.pt-4  { padding-top: 16px; }
.pt-6  { padding-top: 24px; }
.pb-4  { padding-bottom: 16px; }
.pb-6  { padding-bottom: 24px; }
.py-10 { padding-top: 40px; padding-bottom: 40px; }

.d-flex        { display: flex; }
.align-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }

.w-full  { width: 100%; }
.h-full  { height: 100%; }

.rounded    { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow    { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

/* Grid utilities */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Main content offset for fixed header */
.main-content,
#main-content {
    padding-top: var(--header-h);
}

/* Container narrow */
.container-narrow {
    max-width: 780px;
    margin: 0 auto;
}

/* Section heading (共通) */
.section-heading {
    font-size: clamp(22px, 3.5vw, 30px);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    text-align: center;
}

/* ============================================================
   Legal Pages (privacy, terms, disclaimer)
   ============================================================ */

.legal-page {
    padding: 48px 0 80px;
}

.legal-title {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.legal-updated {
    font-size: 13px;
    margin-bottom: 40px;
}

.legal-body {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-secondary);
}

.legal-body section {
    margin-bottom: 36px;
}

.legal-body h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.legal-body ul {
    padding-left: 24px;
    margin: 12px 0;
}

.legal-body li {
    margin-bottom: 6px;
}

.legal-body p {
    margin-bottom: 12px;
}

/* ============================================================
   Listing Page
   ============================================================ */

.listing-hero {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 50%, #f0fdf4 100%);
    padding: 56px 0;
    text-align: center;
}

[data-theme="dark"] .listing-hero {
    background: linear-gradient(135deg, rgba(5,150,105,.08), rgba(8,145,178,.06));
}

.listing-hero-title {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    line-height: 1.3;
}

.listing-hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.listing-hero .btn {
    margin: 0 6px 10px;
}

.listing-merits {
    padding: 64px 0;
}

.merits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.merit-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.merit-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.merit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--accent-primary-light);
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.merit-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.merit-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.listing-form-section {
    padding: 64px 0;
    background: var(--bg-secondary);
}

.listing-form-wrap {
    max-width: 680px;
    margin: 0 auto;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
}

.listing-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.listing-plans-link {
    padding: 64px 0;
}

.plans-link-wrap {
    text-align: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 32px;
}

.plans-link-wrap h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.plans-link-wrap p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .merits-grid { grid-template-columns: 1fr; }
    .listing-form-wrap { padding: 28px 20px; }
    .plans-link-wrap { padding: 36px 20px; }
}

/* ============================================================
   19. Responsive
   ============================================================ */

@media (max-width: 1024px) {
    .container { padding: 0 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .header-nav { display: none; }
    .hamburger-btn { display: flex; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root {
        --header-h: 56px;
    }
    .container { padding: 0 16px; }
    .sp-only { display: block !important; }
    .sp-only.sp-flex { display: flex !important; }
    .pc-only { display: none !important; }

    .grid-2,
    .grid-3,
    .grid-4 { grid-template-columns: 1fr; gap: 16px; }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

    .section-header { margin-bottom: 32px; }
    .section-padding { padding: 56px 0; }

    .fab-cta { bottom: 20px; right: 16px; padding: 12px 18px; font-size: 13px; }

    .toast-container { bottom: 16px; right: 16px; left: 16px; }
    .toast { max-width: 100%; }

    .btn-lg { padding: 12px 22px; font-size: 15px; }
}

@media (max-width: 480px) {
    .grid-2 { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 22px; }
}

/* ============================================================
   Utility: Hidden
   ============================================================ */
.hidden { display: none !important; }

/* ============================================================
   Utility: Form
   ============================================================ */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-input,
.form-select,
.form-textarea {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.form-textarea { resize: vertical; min-height: 100px; }

.form-note { margin-top: 12px; text-align: center; }

.checkbox-grid-sm {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--accent-primary);
}

.section-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .form-grid-2 { grid-template-columns: 1fr; }
}
