/* ==========================================================================
   Behringer サイト スタイルシート
   共通スタイル: /styles_251015-fixed-hibino.css
   ========================================================================== */

/* ── CSS カスタムプロパティ ────────────────────────────────────────────── */
:root {
    --beh-black:        #F0F2F5;        /* ページ背景 */
    --beh-dark:         #FFFFFF;        /* セクション・ナビ背景 */
    --beh-dark-sec:     #F7F8FA;        /* カード背景 */
    --beh-accent:       #E87722;
    --beh-accent-dark:  #C45E0C;
    --beh-text-light:   #1A1A1A;        /* メインテキスト */
    --beh-text-muted:   #777777;        /* サブテキスト */
    --beh-white:        #FFFFFF;
    --beh-border:       rgba(0, 0, 0, 0.09);

    --container-max: 1200px;
    --container-pad: 0 24px;
    --section-gap:   80px;
    --radius-sm:     6px;
    --radius-md:     12px;
    --radius-lg:     20px;

    --transition: 0.25s ease;
}

/* ── リセット・ベース ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

.behringer-page {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: var(--beh-text-light);
    background: var(--beh-black);
    line-height: 1.7;
}

/* ── コンテナ ──────────────────────────────────────────────────────────── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--container-pad);
}

/* ── ボタン ────────────────────────────────────────────────────────────── */
.beh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition), transform var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}
.beh-btn:hover { transform: translateY(-2px); }

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

.beh-btn--outline {
    background: transparent;
    border-color: var(--beh-accent);
    color: var(--beh-accent);
}
.beh-btn--outline:hover {
    background: var(--beh-accent);
    color: var(--beh-white);
}

.beh-btn--ghost {
    background: transparent;
    border-color: transparent;
    color: var(--beh-text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding-left: 0;
    padding-right: 0;
}
.beh-btn--ghost:hover { color: var(--beh-accent); background: transparent; transform: none; }

.beh-product-detail__info .beh-btn + .beh-btn { margin-top: 16px; }

/* ── ブランドナビゲーション ─────────────────────────────────────────────── */
.beh-brand-nav {
    background: var(--beh-dark);
    border-bottom: 1px solid var(--beh-border);
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    /* 共通nav CSSの幅制限をリセットして背景を画面幅いっぱいに */
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: unset;
}
/* ロゴ左・縦仕切り・カテゴリ右で横並び */
.beh-brand-nav__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: stretch;
    min-height: 56px;
}
.beh-brand-nav__header {
    display: flex;
    align-items: center;
    padding-right: 20px;
    margin-right: 4px;
    border-right: 1px solid var(--beh-border);
    flex-shrink: 0;
}
.beh-brand-nav__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.beh-brand-nav__logo img {
    display: block;
    height: 22px;
    width: auto;
}
.beh-brand-nav__menu {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    gap: 2px;
}
.beh-brand-nav__link {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    color: var(--beh-text-muted);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 5px;
    transition: color var(--transition), background var(--transition);
}
.beh-brand-nav__link:hover {
    color: var(--beh-text-light);
    background: rgba(0,0,0,0.05);
}
.beh-brand-nav__item.is-active .beh-brand-nav__link {
    color: var(--beh-accent);
    background: rgba(232,119,34,0.09);
    font-weight: 700;
}

/* サポート・ストアボタン */
.beh-brand-nav__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 12px;
    margin-left: 4px;
    border-left: 1px solid var(--beh-border);
    flex-shrink: 0;
}
.beh-brand-nav__action-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 5px;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.beh-brand-nav__action-btn--support {
    color: var(--beh-text-muted);
    border: 1px solid var(--beh-border);
    background: transparent;
}
.beh-brand-nav__action-btn--support:hover {
    color: var(--beh-text-light);
    border-color: var(--beh-text-muted);
    background: rgba(0,0,0,0.04);
}
.beh-brand-nav__action-btn--store {
    color: #fff;
    background: var(--beh-accent);
    border: 1px solid var(--beh-accent);
}
.beh-brand-nav__action-btn--store:hover {
    background: var(--beh-accent-dark);
    border-color: var(--beh-accent-dark);
}
.beh-brand-nav__action-btn--search {
    color: var(--beh-text-muted);
    background: transparent;
    border: 1px solid var(--beh-border);
    cursor: pointer;
    padding: 5px 8px;
}
.beh-brand-nav__action-btn--search:hover {
    color: var(--beh-text-light);
    border-color: var(--beh-text-muted);
    background: rgba(0,0,0,0.04);
}

/* ── 検索オーバーレイ ─────────────────────────────────────────────────── */
.beh-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.beh-search-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
.beh-search-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(3px);
}
.beh-search-overlay__panel {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 20px;
    background: var(--beh-dark);
    border: 1px solid var(--beh-border);
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.18);
    padding: 6px 6px 6px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(-12px);
    transition: transform 0.22s ease;
}
.beh-search-overlay.is-open .beh-search-overlay__panel {
    transform: translateY(0);
}
.beh-search-overlay__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--beh-text-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: color var(--transition), background var(--transition);
}
.beh-search-overlay__close:hover {
    color: var(--beh-text-light);
    background: rgba(0,0,0,0.06);
}
.beh-search-form {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}
.beh-search-form__icon {
    color: var(--beh-text-muted);
    flex-shrink: 0;
}
.beh-search-form__input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.1rem;
    color: var(--beh-text-light);
    padding: 10px 0;
    min-width: 0;
}
.beh-search-form__input::placeholder { color: var(--beh-text-muted); }
.beh-search-form__input::-webkit-search-cancel-button { display: none; }
.beh-search-form__submit {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: var(--beh-accent);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition);
}
.beh-search-form__submit:hover { background: var(--beh-accent-dark); }

/* ハンバーガーボタン（SP） */
.beh-brand-nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.beh-brand-nav__hamburger span {
    display: block;
    height: 2px;
    background: var(--beh-text-light);   /* --beh-text-light は #1A1A1A に変更済み */
    border-radius: 2px;
    transition: var(--transition);
}

/* ── セクション共通 ──────────────────────────────────────────────────────── */
.beh-section {
    padding: var(--section-gap) 0;
}
.beh-section-header {
    text-align: center;
    margin-bottom: 56px;
}
.beh-section-header__en {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--beh-accent);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.beh-section-header__en::before,
.beh-section-header__en::after {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--beh-accent);
    opacity: 0.5;
}
.beh-section-header__title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--beh-text-light);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}
.beh-section-header__sub {
    color: var(--beh-text-muted);
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

/* ── ヒーローセクション ──────────────────────────────────────────────────── */
.beh-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.beh-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.beh-hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.beh-hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 90% 100% at 50% 40%,
        rgba(243,244,246,0.93) 0%,
        rgba(243,244,246,0.80) 55%,
        rgba(243,244,246,0.35) 100%
    );
}
.beh-hero__content {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    padding-bottom: 80px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.beh-hero__logo-wrap {
    margin-bottom: 0;
}
.beh-hero__logo { height: 150px; width: auto; }
.beh-hero__logo-wrap::after {
    content: '';
    display: block;
    width: 1px;
    height: 28px;
    background: rgba(0,0,0,0.15);
    margin: 20px auto 24px;
}
.beh-hero__tagline {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    color: var(--beh-accent);
    text-transform: uppercase;
    margin-bottom: 24px;
    display: block;
}
.beh-hero__title {
    font-size: clamp(1.8rem, 3.8vw, 3.2rem);
    font-weight: 800;
    line-height: 1.32;
    color: #111111;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}
.beh-hero__title-lead {
    display: block;
    font-size: 0.6em;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(30,30,30,0.5);
    margin-bottom: 6px;
    text-transform: uppercase;
}
.beh-hero__desc {
    font-size: 0.93rem;
    color: rgba(30,30,30,0.6);
    margin: 0 auto 36px;
    max-width: 520px;
    line-height: 1.9;
    letter-spacing: 0.01em;
}
.beh-hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.beh-hero__scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}
.beh-hero__scroll-indicator span {
    display: block;
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--beh-accent);
    border-bottom: 2px solid var(--beh-accent);
    transform: rotate(45deg);
    animation: scroll-bounce 1.6s infinite;
    filter: drop-shadow(0 0 4px rgba(232,119,34,0.4));
}
@keyframes scroll-bounce {
    0%, 100% { opacity: 0.2; transform: rotate(45deg) translate(0, 0); }
    50%       { opacity: 1;   transform: rotate(45deg) translate(4px, 4px); }
}

/* ── ジャンルグリッド ────────────────────────────────────────────────────── */
.beh-genres-section {
    background: var(--beh-dark);
}
.beh-genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* ── ジャンルカード ──────────────────────────────────────────────────────── */
.beh-genre-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--beh-white);
    border: 1px solid var(--beh-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, border-color 0.3s ease,
                box-shadow 0.3s ease;
}
.beh-genre-card:hover {
    transform: translateY(-6px);
    border-color: var(--genre-color, var(--beh-accent));
    box-shadow: 0 12px 36px rgba(0,0,0,0.12),
                0 0 0 1px var(--genre-color, var(--beh-accent));
}
.beh-genre-card__image-wrap {
    height: 240px;
    background: var(--beh-black);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 3px solid var(--genre-color, var(--beh-accent));
}
.beh-genre-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.beh-genre-card:hover .beh-genre-card__image {
    transform: scale(1.07);
}
.beh-genre-card__accent {
    height: 0;
}
.beh-genre-card__body {
    padding: 20px 24px 16px;
    flex: 1;
}
.beh-genre-card__label-en {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--genre-color, var(--beh-accent));
    text-transform: uppercase;
    margin-bottom: 6px;
}
.beh-genre-card__label {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--beh-text-light);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.beh-genre-card__desc {
    font-size: 0.8rem;
    color: var(--beh-text-muted);
    line-height: 1.65;
    margin: 0;
}
.beh-genre-card__arrow {
    padding: 12px 20px;
    text-align: right;
    font-size: 1.1rem;
    color: var(--genre-color, var(--beh-accent));
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.beh-genre-card:hover .beh-genre-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ── 製品グリッド ────────────────────────────────────────────────────────── */
.beh-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.beh-products-grid--featured {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ── 製品カード ──────────────────────────────────────────────────────────── */
.beh-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--beh-white);
    border: 1px solid var(--beh-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, border-color 0.3s ease,
                box-shadow 0.3s ease;
}
.beh-product-card:hover {
    transform: translateY(-6px);
    border-color: var(--beh-accent);
    box-shadow: 0 12px 32px rgba(232,119,34,0.15);
}
.beh-product-card--featured {
    border-color: rgba(232, 119, 34, 0.3);
}
.beh-product-card__image-wrap {
    background: #F5F5F5;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.beh-product-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform var(--transition);
}
.beh-product-card:hover .beh-product-card__image {
    transform: scale(1.04);
}
.beh-product-card__body {
    padding: 16px 18px 20px;
    flex: 1;
}
.beh-product-card__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}
.beh-product-card__category {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--beh-accent);
    text-transform: uppercase;
}
.beh-product-card__name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--beh-text-light);
    margin: 0 0 6px;
}
.beh-product-card__catch {
    font-size: 0.82rem;
    color: var(--beh-text-muted);
    margin: 0;
    line-height: 1.5;
}
.beh-product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--beh-accent);
    color: var(--beh-white);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: 4px;
}
.beh-product-card__badge--discontinued {
    background: #555;
}
.beh-discontinued-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid #666;
    border-left: 3px solid #888;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #bbb;
    margin-bottom: 14px;
}
.beh-discontinued-notice__icon {
    font-style: normal;
    flex-shrink: 0;
}
.beh-btn--discontinued {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #444;
    color: #888;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: default;
    font-size: 0.9rem;
}

/* ── ジャンルヒーロー ────────────────────────────────────────────────────── */
.beh-genre-hero {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--beh-black) 100%);
    border-bottom: 2px solid var(--genre-color, var(--beh-accent));
    padding: 60px 0 48px;
}
.beh-genre-hero__inner { max-width: 720px; }
.beh-genre-hero__en {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--genre-color, var(--beh-accent));
    text-transform: uppercase;
    margin-bottom: 8px;
}
.beh-genre-hero__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--beh-text-light);
    margin: 0 0 16px;
}
.beh-genre-hero__desc {
    font-size: 1rem;
    color: var(--beh-text-muted);
    max-width: 680px;
    line-height: 1.8;
    margin: 0 0 20px;
}
.beh-genre-hero__count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--genre-color, var(--beh-accent));
    background: color-mix(in srgb, var(--genre-color, var(--beh-accent)) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--genre-color, var(--beh-accent)) 30%, transparent);
    border-radius: 999px;
    padding: 4px 14px;
    letter-spacing: 0.05em;
    margin: 0;
}

/* ── フィルターバー ──────────────────────────────────────────────────────── */
.beh-filter-bar {
    background: var(--beh-dark);
    border-bottom: 1px solid var(--beh-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 14px 0;
    position: sticky;
    top: 0;   /* JS で動的に上書き */
    z-index: 100;
}
.beh-filter-bar .container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.beh-filter-bar--collapsible .container {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
}
.beh-filter-btns-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    max-height: 42px;
    padding-bottom: 2px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.beh-filter-bar--collapsible.is-expanded .beh-filter-btns-wrap {
    max-height: 600px;
}
.beh-filter-expand-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--beh-border);
    background: transparent;
    color: var(--beh-text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
}
.beh-filter-expand-btn:hover {
    border-color: var(--beh-accent);
    color: var(--beh-accent);
}
.beh-filter-expand-btn__icon {
    transition: transform 0.25s ease;
}
.beh-filter-bar--collapsible.is-expanded .beh-filter-expand-btn__icon {
    transform: rotate(180deg);
}
.beh-filter-btn {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--beh-border);
    background: transparent;
    color: var(--beh-text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.beh-filter-btn:hover,
.beh-filter-btn.is-active {
    background: var(--beh-accent);
    border-color: var(--beh-accent);
    color: var(--beh-white);
}

/* ── パンくずリスト ──────────────────────────────────────────────────────── */
.beh-breadcrumb-bar {
    background: var(--beh-dark);
    padding: 12px 0;
    border-bottom: 1px solid var(--beh-border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.beh-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--beh-text-muted);
}
.beh-breadcrumb a {
    color: var(--beh-text-muted);
    text-decoration: none;
    transition: color var(--transition);
}
.beh-breadcrumb a:hover { color: var(--beh-accent); }

/* ── 製品詳細 ────────────────────────────────────────────────────────────── */
.beh-product-detail__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 64px;
}
.beh-product-detail__image-wrap {
    background: var(--beh-dark-sec);
    border: 1px solid var(--beh-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.beh-product-detail__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
}
/* サムネイルギャラリー */
.beh-product-detail__thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.beh-thumb {
    width: 72px;
    height: 72px;
    border: 2px solid var(--beh-border);
    border-radius: 8px;
    padding: 3px;
    cursor: pointer;
    background: var(--beh-dark-sec);
    overflow: hidden;
    transition: border-color var(--transition);
    flex-shrink: 0;
}
.beh-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.beh-thumb.is-active { border-color: var(--beh-accent); }
.beh-thumb:hover:not(.is-active) { border-color: var(--beh-text-muted); }

/* ── ライトボックス ─────────────────────────────────────────────────── */
.beh-product-detail__image-wrap { cursor: zoom-in; }

.beh-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
.beh-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}
.beh-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
}
.beh-lightbox__img {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
    cursor: zoom-out;
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.7);
}

/* ── 免責注意事項 ───────────────────────────────────────────────────── */
.beh-disclaimer {
    border-top: 1px solid var(--beh-border);
    padding: 20px 0;
}
.beh-disclaimer p {
    font-size: 0.75rem;
    color: var(--beh-text-muted);
    line-height: 1.7;
    margin: 0;
}

.beh-product-detail__name {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--beh-text-light);
    margin: 8px 0 12px;
}
.beh-product-detail__catch {
    font-size: 1rem;
    color: var(--beh-accent);
    font-weight: 600;
    margin-bottom: 20px;
}
.beh-product-detail__desc {
    color: var(--beh-text-muted);
    line-height: 1.9;
    margin-bottom: 28px;
}
.beh-product-detail__block-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--beh-text-light);
    letter-spacing: 0.05em;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--beh-border);
}
.beh-product-detail__features {
    margin-bottom: 28px;
}
.beh-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.beh-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--beh-text-muted);
}
.beh-feature-list li::before {
    content: '▸';
    color: var(--beh-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

/* スペックテーブル */
.beh-product-detail__specs {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--beh-border);
}
.beh-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.beh-spec-table th,
.beh-spec-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--beh-border);
}
.beh-spec-table th {
    color: var(--beh-text-muted);
    font-weight: 600;
    width: 35%;
    background: #F0F2F5;
}
.beh-spec-table td {
    color: var(--beh-text-light);
}

/* ── パッケージ変更お知らせ ──────────────────────────────────────────────── */
.beh-package-notice {
    margin-top: 40px;
    padding: 20px 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--beh-border);
    border-left: 3px solid #4a8a5a;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--beh-text-muted);
    line-height: 1.8;
}
.beh-package-notice__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--beh-text-light);
    font-size: 0.88rem;
}
.beh-package-notice__list {
    margin: 10px 0 10px 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.beh-package-notice__footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--beh-border);
    font-size: 0.82rem;
}

/* ── Featured セクション ─────────────────────────────────────────────────── */
.beh-featured-section {
    background: var(--beh-black);
}
.beh-featured-section .beh-product-card {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.beh-featured-section .beh-product-card:hover {
    box-shadow: 0 12px 36px rgba(232,119,34,0.18);
}

/* ── ニュース ────────────────────────────────────────────────────────────── */
.beh-news-section {
    background: var(--beh-dark);
}

.beh-section-footer {
    text-align: center;
    margin-top: 36px;
}

/* index: カードグリッド */
.beh-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;
}
@media (max-width: 768px) {
    .beh-news-grid { grid-template-columns: 1fr; }
}
.beh-news-card {
    background: var(--beh-dark-sec);
    border: 1px solid var(--beh-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.beh-news-card:hover {
    border-color: var(--beh-accent);
    box-shadow: 0 6px 24px rgba(232,119,34,0.12);
    transform: translateY(-2px);
}

/* カードアコーディオン: クリック可能ヘッダー */
.beh-news-card__head {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 40px 20px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    position: relative;
    transition: background var(--transition);
}
.beh-news-card__head--static {
    padding-right: 20px;
    cursor: default;
}
.beh-news-card--expandable .beh-news-card__head:hover {
    background: var(--beh-black);
}

/* シェブロン */
.beh-news-card__chevron {
    position: absolute;
    right: 14px;
    top: 20px;
    color: var(--beh-text-muted);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
.beh-news-card__head[aria-expanded="true"] .beh-news-card__chevron {
    transform: rotate(180deg);
}

/* 展開ボディ */
.beh-news-card__body {
    padding: 0 20px 20px;
    border-top: 1px solid var(--beh-border);
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.beh-news-card__body[hidden] { display: none; }
.beh-news-card__content {
    font-size: 0.88rem;
    line-height: 1.9;
    color: var(--beh-text-light);
    padding-top: 16px;
}
.beh-news-card__content p { margin: 0 0 10px; }
.beh-news-card__content p:last-child { margin-bottom: 0; }
.beh-news-card__content a {
    color: var(--beh-accent);
    text-decoration: underline;
}
.beh-news-card__content a:hover { color: var(--beh-accent-dark); }

/* メタ・タイトル・抜粋 */
.beh-news-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
}
.beh-news-card__date {
    font-size: 0.78rem;
    color: var(--beh-text-muted);
}
.beh-news-card__title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--beh-text-light);
    margin: 0;
    line-height: 1.5;
}
.beh-news-card__excerpt {
    font-size: 0.82rem;
    color: var(--beh-text-muted);
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* news.php: リスト表示 */
.beh-news-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--beh-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* アコーディオン: 各アイテムラッパー */
.beh-news-accordion {
    border-bottom: 1px solid var(--beh-border);
    background: var(--beh-dark-sec);
}
.beh-news-accordion:last-child { border-bottom: none; }

/* ヘッダー（クリック可） */
.beh-news-accordion__head {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 20px 52px 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    position: relative;
    transition: background var(--transition);
}
.beh-news-accordion__head--static {
    cursor: default;
    padding-right: 24px;
}
.beh-news-accordion--expandable .beh-news-accordion__head:hover {
    background: var(--beh-black);
}

/* シェブロンアイコン */
.beh-news-accordion__chevron {
    position: absolute;
    right: 20px;
    top: 22px;
    color: var(--beh-text-muted);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
.beh-news-accordion__head[aria-expanded="true"] .beh-news-accordion__chevron {
    transform: rotate(180deg);
}

/* 展開ボディ */
.beh-news-accordion__body {
    padding: 0 24px 24px;
    border-top: 1px solid var(--beh-border);
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.beh-news-accordion__body[hidden] { display: none; }

/* 本文HTML */
.beh-news-accordion__content {
    font-size: 0.92rem;
    line-height: 1.9;
    color: var(--beh-text-light);
    padding-top: 20px;
}
.beh-news-accordion__content p { margin: 0 0 12px; }
.beh-news-accordion__content p:last-child { margin-bottom: 0; }
.beh-news-accordion__content a {
    color: var(--beh-accent);
    text-decoration: underline;
}
.beh-news-accordion__content a:hover { color: var(--beh-accent-dark); }

/* 詳しく見るボタン */
.beh-news-accordion__link {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
}

/* メタ・タイトル・抜粋（共通） */
.beh-news-list-item__meta {
    display: flex;
    align-items: center;
    gap: 8px;
}
.beh-news-list-item__date {
    font-size: 0.78rem;
    color: var(--beh-text-muted);
}
.beh-news-list-item__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--beh-text-light);
    margin: 0;
    line-height: 1.5;
}
.beh-news-list-item__excerpt {
    font-size: 0.82rem;
    color: var(--beh-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ── About セクション ────────────────────────────────────────────────────── */
.beh-about-section {
    background: var(--beh-black);
}
.beh-about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.beh-about__title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--beh-text-light);
    margin: 8px 0 20px;
}
.beh-about__body {
    color: var(--beh-text-muted);
    line-height: 1.9;
    margin-bottom: 16px;
}
.beh-about__image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* ── 関連製品セクション ──────────────────────────────────────────────────── */
.beh-related-section {
    background: var(--beh-dark);
}

/* ── 空メッセージ ────────────────────────────────────────────────────────── */
.beh-empty-msg {
    text-align: center;
    color: var(--beh-text-muted);
    padding: 60px 0;
    font-size: 1rem;
}

/* ── レスポンシブ ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .beh-product-detail__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .beh-about__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .beh-about__image { order: -1; }
}

@media (max-width: 768px) {
    :root {
        --section-gap: 56px;
    }
    .beh-brand-nav__hamburger { display: flex; }
    .beh-brand-nav__inner {
        padding: 0;
        flex-direction: column;
        min-height: unset;
    }
    .beh-brand-nav__header {
        padding: 0 16px;
        height: 50px;
        border-right: none;
        border-bottom: 1px solid var(--beh-border);
        margin-right: 0;
        justify-content: space-between;
        width: 100%;
    }
    .beh-brand-nav__menu {
        display: none;
        flex-direction: column;
        flex-wrap: nowrap;
        align-content: unset;
        padding: 6px 0;
        gap: 0;
        box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    }
    .beh-brand-nav__menu.is-open { display: flex; }
    .beh-brand-nav__actions {
        display: none;
        padding: 10px 16px 14px;
        border-left: none;
        border-top: 1px solid var(--beh-border);
        margin-left: 0;
        gap: 8px;
    }
    .beh-brand-nav__actions.is-open { display: flex; }
    .beh-brand-nav__action-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 12px;
        font-size: 0.82rem;
    }
    .beh-brand-nav__link {
        padding: 10px 20px;
        border-radius: 0;
        font-size: 0.85rem;
        border-left: 3px solid transparent;
    }
    .beh-brand-nav__item.is-active .beh-brand-nav__link {
        border-left-color: var(--beh-accent);
        background: rgba(232,119,34,0.05);
    }

    .beh-genres-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .beh-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .beh-hero__content { max-width: 100%; padding-left: 16px; padding-right: 16px; }
    .beh-hero__logo { height: 110px; }
    .beh-hero__desc { max-width: 100%; }
    .beh-hero__title { margin-bottom: 28px; }
    .beh-section-header__title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .beh-hero__logo { height: 80px; }
    .beh-hero__logo-wrap::after { height: 20px; margin: 14px auto 18px; }
    .beh-hero__tagline { font-size: 0.6rem; }
    .beh-hero__title { font-size: 1.5rem; margin-bottom: 24px; }
    .beh-products-grid { grid-template-columns: 1fr; }
    .beh-genres-grid { grid-template-columns: 1fr; }
}

/* ── リソースセンター ────────────────────────────────────────────────────── */
.beh-page-hero {
    background: var(--beh-dark);
    border-bottom: 1px solid var(--beh-border);
    padding: 48px 0 40px;
}
.beh-page-hero__title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--beh-text);
    margin: 16px 0 8px;
}
.beh-page-hero__desc {
    font-size: 1rem;
    color: var(--beh-text-muted);
}

/* 検索バー */
.beh-resource-search {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
}
.beh-resource-search__input {
    flex: 1 1 280px;
    padding: 10px 16px;
    border: 1px solid var(--beh-border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: var(--beh-dark);
    color: var(--beh-text);
    outline: none;
    transition: border-color var(--transition);
}
.beh-resource-search__input:focus { border-color: var(--beh-accent); }
.beh-resource-filters { display: flex; gap: 12px; flex-wrap: wrap; }
.beh-resource-select {
    padding: 10px 14px;
    border: 1px solid var(--beh-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: var(--beh-dark);
    color: var(--beh-text);
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition);
}
.beh-resource-select:focus { border-color: var(--beh-accent); }

/* テーブル */
.beh-resource-row.is-hidden { display: none !important; }
.beh-resource-table-wrap { overflow-x: auto; }
.beh-resource-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.beh-resource-table thead th {
    text-align: left;
    padding: 10px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--beh-text-muted);
    border-bottom: 2px solid var(--beh-border);
    white-space: nowrap;
}
.beh-resource-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--beh-border);
    color: var(--beh-text);
    vertical-align: middle;
}
.beh-resource-row:hover td { background: var(--beh-dark-sec); }
.beh-resource-row__name { font-weight: 600; }
.beh-resource-row__size { color: var(--beh-text-muted); font-size: 0.85rem; }
.beh-resource-row__version { color: var(--beh-text-muted); font-size: 0.85rem; white-space: nowrap; }
.beh-resource-row__compatible { color: var(--beh-text-muted); font-size: 0.82rem; max-width: 220px; }

.beh-resource-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--beh-dark-sec);
    border: 1px solid var(--beh-border);
    color: var(--beh-text-muted);
}
.beh-resource-unavailable { font-size: 0.85rem; color: var(--beh-text-muted); }
.beh-resource-no-results { text-align: center; padding: 40px 0; color: var(--beh-text-muted); }

.beh-btn--sm { padding: 7px 16px; font-size: 0.82rem; }

/* FAQ */
.beh-faq-section { background: var(--beh-dark-sec); }
.beh-faq-search {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}
.beh-faq-search .beh-resource-search__input {
    width: 100%;
    max-width: 640px;
}
.beh-faq-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.beh-faq-tab {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--beh-border);
    background: var(--beh-dark);
    color: var(--beh-text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.beh-faq-tab:hover { border-color: var(--beh-accent); color: var(--beh-accent); }
.beh-faq-tab.is-active {
    background: var(--beh-accent);
    border-color: var(--beh-accent);
    color: #fff;
}

.beh-faq-list { display: flex; flex-direction: column; gap: 0; }
.beh-faq-item {
    border-bottom: 1px solid var(--beh-border);
}
.beh-faq-item:first-child { border-top: 1px solid var(--beh-border); }
.beh-faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 4px;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--beh-text);
    cursor: pointer;
    transition: color var(--transition);
}
.beh-faq-item__question:hover { color: var(--beh-accent); }
.beh-faq-item__icon {
    flex-shrink: 0;
    color: var(--beh-text-muted);
    transition: transform 0.25s;
}
.beh-faq-item.is-open .beh-faq-item__icon { transform: rotate(180deg); }
.beh-faq-item.is-open .beh-faq-item__question { color: var(--beh-accent); }
.beh-faq-item__answer {
    padding: 0 4px 20px;
}
.beh-faq-item__answer p {
    font-size: 0.92rem;
    color: var(--beh-text-muted);
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 768px) {
    .beh-resource-search { flex-direction: column; }
    .beh-resource-search__input { flex: 1 1 100%; }
    .beh-resource-filters { flex-direction: column; }
    .beh-resource-select { width: 100%; }
    /* バージョン・対応デバイス列を非表示 */
    .beh-resource-table thead th:nth-child(4),
    .beh-resource-table tbody td:nth-child(4),
    .beh-resource-table thead th:nth-child(5),
    .beh-resource-table tbody td:nth-child(5) { display: none; }
    .beh-page-hero__title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    /* テーブルをカード形式に変換 */
    .beh-resource-table-wrap { overflow-x: visible; }
    .beh-resource-table,
    .beh-resource-table thead,
    .beh-resource-table tbody,
    .beh-resource-table tr,
    .beh-resource-table th,
    .beh-resource-table td { display: block; }
    .beh-resource-table thead { display: none; }
    .beh-resource-row {
        padding: 14px 16px;
        border-bottom: 1px solid var(--beh-border);
        background: var(--beh-dark);
        display: flex !important;
        flex-direction: column;
        gap: 6px;
    }
    .beh-resource-row:hover { background: var(--beh-dark-sec); }
    .beh-resource-row td {
        padding: 0;
        border: none;
    }
    /* ジャンル・バージョン・対応デバイスは非表示 */
    .beh-resource-row td:nth-child(2),
    .beh-resource-row td:nth-child(4),
    .beh-resource-row td:nth-child(5) { display: none; }
    .beh-resource-row__name { font-size: 0.95rem; }
    /* ダウンロードボタン */
    .beh-resource-row td:last-child { margin-top: 4px; }
    .beh-resource-row td:last-child .beh-btn { width: 100%; justify-content: center; }
}

/* ── ページネーション ────────────────────────────────────────────────────── */
.beh-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.beh-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--beh-border);
    border-radius: var(--radius-sm);
    background: var(--beh-dark);
    color: var(--beh-text-light);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: all var(--transition);
}
.beh-page-btn:hover:not([disabled]) {
    border-color: var(--beh-accent);
    color: var(--beh-accent);
}
.beh-page-btn.is-active {
    background: var(--beh-accent);
    border-color: var(--beh-accent);
    color: #fff;
}
.beh-page-btn[disabled] {
    opacity: 0.35;
    cursor: default;
}
.beh-page-btn--arrow {
    font-size: 1.1rem;
    padding: 0 12px;
}
.beh-page-ellipsis {
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 4px;
    color: var(--beh-text-muted);
    font-size: 0.88rem;
    user-select: none;
}
