/**
 * Rocket Booster Reset CSS
 *
 * ビルダーモード用の最小限リセットCSS
 * - テーマの装飾なし
 * - RocketWeaverプラグインに完全委譲
 *
 * @package RocketBooster
 * @since 1.0.0
 */

/* ==========================================================================
   CSS Custom Properties (RocketWeaverと共有)
   ========================================================================== */

:root {
    /* プライマリカラー（RocketWeaverのデフォルト） */
    --rw-primary: #4f46e5;
    --rw-primary-hover: #4338ca;

    /* テキストカラー */
    --rw-text: #1a202c;
    --rw-text-muted: #718096;

    /* 背景色 */
    --rw-bg: #ffffff;
    --rw-bg-secondary: #f7fafc;

    /* ボーダー */
    --rw-border: #e2e8f0;

    /* シャドウ */
    --rw-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --rw-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    /* 角丸 */
    --rw-radius: 0.375rem;
    --rw-radius-lg: 0.5rem;

    /* トランジション */
    --rw-transition: 0.2s ease;

    /* フォント */
    --rw-font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}

/* ==========================================================================
   Minimal Reset
   ========================================================================== */

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

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
    font-family: var(--rw-font-sans);
    color: var(--rw-text);
    background-color: var(--rw-bg);
}

/* ==========================================================================
   Typography Reset
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
}

/* ==========================================================================
   List Reset
   ========================================================================== */

ul,
ol {
    list-style: none;
}

/* ==========================================================================
   Link Reset
   ========================================================================== */

a {
    color: inherit;
    text-decoration: inherit;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
}

/* ==========================================================================
   Media Reset
   ========================================================================== */

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Form Reset
   ========================================================================== */

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    background: transparent;
    border: none;
    cursor: pointer;
}

/* ==========================================================================
   Table Reset
   ========================================================================== */

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ==========================================================================
   RocketWeaver Canvas Specific
   ========================================================================== */

.rocketweaver-canvas {
    background: var(--rw-bg);
}

/* WordPress管理バーの調整 */
body.admin-bar.rocketweaver-canvas {
    padding-top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar.rocketweaver-canvas {
        padding-top: 46px;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

/* スクリーンリーダー専用テキスト */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* フォーカス表示（アクセシビリティ） */
:focus-visible {
    outline: 2px solid var(--rw-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    img {
        page-break-inside: avoid;
    }

    @page {
        margin: 2cm;
    }
}
