{#/** * SP専用ヘッダーブロック * 768px以下で表示されるモバイル専用ヘッダー */#}<style>/* SP専用ヘッダー(768px以下でのみ表示) */@media (max-width: 768px) { .Logo-img{ width: 84px; } .sp-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background-color: #ffffff; border-bottom: 1px solid #f0f0f0; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); top: 0; height: 64px; } .sp-header__menu-wrapper { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: black; transition: color 0.3s ease; gap: 2px; } .sp-header__menu-btn { display: flex; flex-direction: column; justify-content: space-between; width: 24px; height: 18px; background: none; border: none; cursor: pointer; padding: 0; margin-bottom: 2px; } .sp-header__menu-btn span { display: block; width: 100%; height: 2px; background-color: currentColor; border-radius: 1px; transition: all 0.3s ease; } .sp-header__menu-text { font-size: 12px; font-weight: 500; line-height: 1; } .sp-header__logo { flex: 1; display: flex; justify-content: center; align-items: center; } .sp-header__logo a { text-decoration: none; color: #8B4513; font-size: 20px; font-weight: bold; font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif; letter-spacing: 0.5px; } .sp-header__cart { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: black; font-size: 12px; font-weight: 500; transition: color 0.3s ease; } .sp-header__cart-icon { width: 24px; height: 24px; margin-bottom: 2px; fill: currentColor; } .sp-header__cart-text { line-height: 1; } .sp-header__cart-count { background-color: #D2691E; color: white; font-size: 12px; font-weight: bold; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; position: absolute; top: -8px; right: -8px; min-width: 18px; } .sp-header__cart-wrapper { position: relative; display: flex; align-items: center; }}/* PC表示時は非表示 */@media (min-width: 769px) { .sp-header { display: none; }}</style><header class="sp-header"> <!-- ハンバーガーメニュー --> <div class="sp-header__menu-wrapper"> <button class="sp-header__menu-btn" type="button"> <span></span> <span></span> <span></span> </button> <span class="sp-header__menu-text">メニュー</span> </div> <!-- ロゴ --> <div class="sp-header__logo"> <a href="{{ url('homepage') }}"> <img src="{{ asset('/html/user_data/ContentImg/iseya_logo.png') }}" alt="ショップロゴ" class="Logo-img"> </a> </div> <!-- カート --><div class="sp-header__cart-wrapper"> {{ include('Block/cart.twig') }}</div></header>