@charset "UTF-8";
/* ============================================
   📦 CORE.CSS - 基本設定・変数定義
   ============================================ */

/* ============================================
   [BLOCK-C01] リセットCSS
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   [BLOCK-C02] CSS変数定義（配色・スペーシング）
   ============================================ */
:root {
    /* === サイト全体の配色 === */
    --color-bg: #F5F5F0;
    /* 全体背景（グレーベージュ） */
    --color-bg-card: #FFFFFF;
    /* カード背景 */
    --color-header: #FFD54F;
    /* ヘッダー・フッター */
    --color-border: #E0E0E0;
    /* ボーダー */

    /* メインカラー（黄色系） */
    --color-primary: #FFD54F;
    /* メイン黄色 */
    --color-primary-light: #FFECB3;
    /* ライト黄色 */
    --color-primary-dark: #FFC107;
    /* ダーク黄色 */

    /* アクセントカラー */
    --color-accent: #FF9800;
    /* オレンジ */
    --color-success: #4CAF50;
    /* 成功（グリーン） */
    --color-warning: #FFC107;
    /* 警告（イエロー） */
    --color-danger: #F44336;
    /* 危険（レッド） */

    /* ニュートラルカラー */
    --color-white: #FFFFFF;
    --color-black: #212121;

    /* テキストカラー */
    --text-primary: #333333;
    /* メインテキスト */
    --text-secondary: #666666;
    /* サブテキスト */
    --text-tertiary: #999999;
    /* 薄いテキスト */
    --text-inverse: #FFFFFF;
    /* 反転テキスト */

    /* スペーシング */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;

    /* ボーダーラジウス */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* シャドウ */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.20);

    /* トランジション */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-index */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 900;
    --z-modal: 1000;
    --z-popover: 1100;
    --z-tooltip: 1200;
}

/* ============================================
   [BLOCK-C03] ベースタイポグラフィ
   ============================================ */
html,
body {
    height: 100%;
    width: 100%;
    font-family: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: #F5F5F0;
    color: #333333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: 80px;
}

/* 全ページ共通背景 */
.column-page,
.column-list-page,
.screen {
    background-color: #F5F5F0;
}


/* ============================================
   [BLOCK-C04] 共通ユーティリティ
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-narrow {
    max-width: 768px;
}

.container-wide {
    max-width: 1400px;
}

/* 画面遷移基本設定 */

.screen {
    display: none;
    width: 100%;
    min-height: 100vh;
}

.screen.active {
    display: block;
}

/* guide画面はflexで表示 */
#guide.active {
    display: flex;
}

/* ============================================
   [BLOCK-C05] 基本アニメーション定義
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ============================================
   [BLOCK-C06] レスポンシブ対応（共通）
   ============================================ */
@media (max-width: 375px) {

    html,
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 var(--spacing-md);
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
}

@media (min-width: 1024px) {

    html,
    body {
        font-size: 18px;
    }
}

/* ============================================
   [BLOCK-C07] アクセシビリティ
   ============================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* フォーカス時のアウトライン */
*:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
}

/* プルリフレッシュ無効化 */
html,
body {
    overscroll-behavior: none;
}

/* ダブルタップズーム無効化 */
* {
    touch-action: manipulation;
}

/* ============================================
   [BLOCK-C08] ヘッダー・フッター共通
   ============================================ */
header {
    background: var(--color-header);
    padding: 16px 20px;
    text-align: center;
}

header h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-header);
    padding: 12px 20px;
    text-align: center;
    font-size: 12px;
    color: var(--text-primary);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

footer.visible {
    opacity: 1;
    visibility: visible;
}

/* ヘッダーシェアボタン */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header-share {
    position: absolute;
    left: 16px;
    display: flex;
    gap: 8px;
}

.header-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.header-share-btn:hover {
    background: #FFD54F;
    transform: scale(1.1);
}

/* ============================================
   END OF CORE.CSS
   ============================================ */