{#
/**
* 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">
<div class="sp-header__cart">
<div style="position: relative;">{#
<svg class="sp-header__cart-icon" viewBox="0 0 24 24">
<path d="M7 18c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12L8.1 13h7.45c.75 0 1.41-.41 1.75-1.03L21.7 4H5.21l-.94-2H1zm16 16c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/>
</svg>
</div>#}
{{ include('Block/cart.twig') }}
<span class="sp-header__cart-text">カート</span>
</div>
</div>
</header>