/*
Theme Name: Riho Cocoon Child
Theme URI: https://rihobeer.com/
Template: cocoon-master
Author: Riho
Author URI: https://rihobeer.com/
Description: Cocoon標準テーマ準拠の子テーマ（第13条準拠）
Version: 2.0.0
Text Domain: riho-cocoon-child
*/

/* 親テーマのスタイルを読み込み - 第13条準拠でcocoon-masterを使用 */
@import url('../cocoon-master/style.css');

/* ======================================
   第13条準拠 - 最小限のカスタマイズ
   ====================================== */

/* Cocoon標準色を使用し、カスタム色は削除 */
/* 必要最小限のスタイル調整のみ */

/* 基本的な調整 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

/* レスポンシブ対応の最小限調整 */
@media (max-width: 768px) {
    .entry-content {
        padding: 10px;
    }
}

/* 第13条準拠: カスタム色定義は削除し、Cocoon標準色を使用 */
/* 第13条準拠: 複雑なカスタムスタイルは削除し、Cocoon標準に準拠 *//* 緊急修正: モバイルスクロール問題対応（第13条準拠 - Cocoon標準テーマ準拠） */

/* body要素のスクロール強制有効化 */
body {
    overflow: auto !important;
    touch-action: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

html {
    overflow: auto !important;
    touch-action: auto !important;
}

/* モバイルヘッダー・フッターボタンの位置固定化 */
.mobile-header-menu-buttons,
.mobile-footer-menu-buttons {
    position: fixed !important;
    transform: none !important;
    transition: none !important;
}

/* モバイルボタンのセーフエリア対応（エラー回避） */
.mobile-footer-menu-buttons {
    bottom: 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}

/* スクロール関連の強制リセット */
.container,
.main,
.content,
.entry-content {
    overflow: visible !important;
    touch-action: auto !important;
}

/* モバイル表示でのスクロール最適化 */
@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }
    
    /* iOS Safari対応 */
    body.ios {
        -webkit-overflow-scrolling: touch !important;
        overflow: auto !important;
    }
}