
/* =========================================================
   BUTA0 Bottom Action Bar
   TOP → MENU → CONTACT → SHARE
   PC / Tablet / Smartphone
   ========================================================= */

#buta0-bottom-bar,
#buta0-bottom-bar *,
#buta0-menu-drawer,
#buta0-menu-drawer *,
#buta0-menu-backdrop {
    box-sizing: border-box;
}

/* ---------------------------------------------------------
   1. Bottom Bar 本体
   --------------------------------------------------------- */

#buta0-bottom-bar.bottom-action-bar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;

    margin: 0 !important;
    padding: 7px 8px;
    padding-bottom: max(7px, env(safe-area-inset-bottom));

    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #c8f2f8;
    box-shadow: 0 -4px 22px rgba(21, 140, 175, 0.14);

    z-index: 99990;

    visibility: hidden;
    opacity: 0;
    transform: translateY(110%);
    pointer-events: none;

    transition:
        transform 0.24s ease,
        opacity 0.24s ease,
        visibility 0.24s ease;
}

/* JavaScriptが上スクロール時に付与するクラス */
#buta0-bottom-bar.bottom-action-bar.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ---------------------------------------------------------
   2. 4つの操作ボタン
   --------------------------------------------------------- */

#buta0-bottom-bar .bar-item {
    appearance: none;
    -webkit-appearance: none;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;

    width: 100%;
    min-width: 0;
    min-height: 54px;
    margin: 0;
    padding: 5px 2px;

    border: 0;
    border-radius: 10px;
    background: transparent;

    color: #176b89;
    font-family: inherit;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;

    cursor: pointer;
    overflow-wrap: anywhere;
    -webkit-tap-highlight-color: transparent;
}

#buta0-bottom-bar .bar-item:hover {
    color: #087fa5;
    background: #eafcff;
    text-decoration: none;
}

#buta0-bottom-bar .bar-item:focus-visible {
    outline: 2px solid #18bfe6;
    outline-offset: -2px;
}

#buta0-bottom-bar .icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 25px;
    height: 25px;
    flex: 0 0 25px;

    font-size: 22px;
    line-height: 1;
}

#buta0-bottom-bar .icon svg {
    display: block;
    width: 22px;
    height: 22px;
    max-width: 100%;
}

#buta0-bottom-bar .label {
    display: block;
    max-width: 100%;
    font-size: 10px;
    line-height: 1.25;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* ---------------------------------------------------------
   3. メニュー背景
   --------------------------------------------------------- */

#buta0-menu-backdrop {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;

    background: rgba(12, 34, 45, 0.48);
    z-index: 99991;
}

#buta0-menu-backdrop[hidden] {
    display: none !important;
}

/* ---------------------------------------------------------
   4. 関連記事ドロワー
   --------------------------------------------------------- */

#buta0-menu-drawer.buta0-menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;

    width: min(390px, 88vw);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;

    display: flex;
    flex-direction: column;
    gap: 0;

    margin: 0;
    padding: 24px 20px;
    padding-top: max(24px, env(safe-area-inset-top));
    padding-bottom: max(20px, env(safe-area-inset-bottom));

    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;

    color: #283640;
    background: #ffffff;
    border-left: 1px solid #c8f2f8;
    box-shadow: -8px 0 30px rgba(15, 100, 125, 0.14);

    z-index: 99992;

    visibility: hidden;
    transform: translateX(105%);
    transition:
        transform 0.25s ease,
        visibility 0.25s ease;
}

#buta0-menu-drawer.buta0-menu-drawer.is-open {
    visibility: visible;
    transform: translateX(0);
}

#buta0-menu-drawer[aria-hidden="true"] {
    pointer-events: none;
}

#buta0-menu-drawer[aria-hidden="false"] {
    pointer-events: auto;
}

#buta0-menu-drawer .buta0-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding-bottom: 18px;
    border-bottom: 1px solid #d8f2f6;
}

#buta0-menu-drawer .buta0-drawer-eyebrow {
    display: block;
    color: #1685a4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

#buta0-menu-drawer .buta0-drawer-header h2 {
    margin: 6px 0 0;
    color: #15546d;
    font-size: 23px;
    line-height: 1.4;
}

#buta0-menu-drawer .buta0-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    padding: 0;
    border: 1px solid #d8f2f6;
    border-radius: 50%;
    background: #f2fdff;

    color: #176b89;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

#buta0-menu-drawer .buta0-drawer-description {
    margin: 18px 0 12px;
    color: #657782;
    font-size: 14px;
    line-height: 1.7;
}

#buta0-menu-drawer .buta0-related-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#buta0-menu-drawer .buta0-related-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    width: 100%;
    min-width: 0;
    padding: 14px;

    color: #15546d;
    background: #f4fcfe;
    border: 1px solid #d8f2f6;
    border-radius: 10px;

    text-decoration: none;
    line-height: 1.65;
}

#buta0-menu-drawer .buta0-related-link:hover {
    background: #e8faff;
    border-color: #83dff0;
}

#buta0-menu-drawer .buta0-related-title {
    min-width: 0;
    overflow-wrap: anywhere;
}

#buta0-menu-drawer .buta0-related-arrow {
    flex: 0 0 auto;
    color: #1597bb;
}

#buta0-menu-drawer .buta0-drawer-all {
    display: block;
    margin-top: 20px;
    padding: 14px;

    color: #ffffff;
    background: #176b89;
    border-radius: 10px;

    text-align: center;
    text-decoration: none;
    font-weight: 750;
    line-height: 1.6;
}

/* ---------------------------------------------------------
   5. メニュー表示中の背景スクロールを抑制
   --------------------------------------------------------- */

body.buta0-menu-open {
    overflow: hidden;
}

/* ---------------------------------------------------------
   6. タブレット・スマートフォン
   --------------------------------------------------------- */

@media (max-width: 768px) {
    #buta0-bottom-bar.bottom-action-bar {
        padding-left: 4px;
        padding-right: 4px;
    }

    #buta0-bottom-bar .bar-item {
        min-height: 52px;
        gap: 3px;
        padding: 4px 1px;
    }

    #buta0-bottom-bar .icon {
        width: 23px;
        height: 23px;
        flex-basis: 23px;
    }

    #buta0-bottom-bar .label {
        font-size: 10px;
    }
}

@media (max-width: 380px) {
    #buta0-bottom-bar.bottom-action-bar {
        padding-left: 2px;
        padding-right: 2px;
    }

    #buta0-bottom-bar .bar-item {
        border-radius: 7px;
    }

    #buta0-bottom-bar .label {
        font-size: 9px;
        letter-spacing: 0;
    }
}

/* ---------------------------------------------------------
   7. 動きを減らす設定
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    #buta0-bottom-bar.bottom-action-bar,
    #buta0-menu-drawer.buta0-menu-drawer {
        transition: none;
    }
}






/*--ハンバーガー--*/

<header class="ocl-site-header">
  <div class="ocl-header-inner">
    <!-- サイトロゴ -->
    <a href="/" class="ocl-brand-logo">
      OKINAWA <span class="breeze">Breeze</span> LIFE
    </a>

    <!-- ハンバーガーボタン（既存のJSと連携） -->
    <button type="button" 
            id="bar-menu-toggle" 
            class="ocl-hamburger-btn" 
            aria-label="メニューを開く" 
            aria-expanded="false">
      <span class="hamburger-bar"></span>
      <span class="hamburger-bar"></span>
      <span class="hamburger-bar"></span>
      <span class="hamburger-label">MENU</span>
    </button>
  </div>
</header>