@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ==========================================================================
1カラムLP用 特設ページ専用スタイル (スコープ化)
既存テーマ・ヘッダー・フッターへの干渉ブロック
========================================================================== */

#miura-gift-special {
font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
color: #332722;
background-color: #fdfbf7;
line-height: 1.8;
text-align: left;
width: 100%;
margin: 0 auto;
box-sizing: border-box;
overflow-x: hidden !important;
}

#miura-gift-special *,
#miura-gift-special *::before,
#miura-gift-special *::after {
box-sizing: border-box !important;
}

/* ユーティリティ */
@media (min-width: 768px) {
.sp-only { display: none !important; }
}

/* タイポグラフィ */
#miura-gift-special .font-serif,
#miura-gift-special .serif {
font-family: 'Noto Serif JP', serif !important;
}

#miura-gift-special h1,
#miura-gift-special h2,
#miura-gift-special h3,
#miura-gift-special h4 {
font-family: 'Noto Serif JP', serif;
font-weight: 700 !important;
line-height: 1.4 !important;
margin-top: 1rem;
}

#miura-gift-special p {
font-size: 16px !important;
line-height: 1.8;
margin-bottom: 1rem;
}

/* 共通コンテナ */
.gift-container {
max-width: 1200px;
width: 100%;
margin: 0 auto;
padding: 0 5px;
}

.gift-container-wide {
max-width: 1200px;
width: 100%;
margin: 0 auto;
padding: 0 16px;
}

.gift-section {
padding: 48px 0;
}

/* 共通見出しパーツ */
.gift-heading {
font-size: 22px !important;
color: #8b261d;
text-align: center;
margin-bottom: 8px !important;
}
@media (min-width: 768px) {
.gift-heading {
font-size: 28px !important;
}
}

.gift-subheading {
display: block;
text-align: center;
color: #8b261d;
font-size: 12px;
font-weight: 700;
letter-spacing: 0.15em;
text-transform: uppercase;
margin-bottom: 4px;
}

.gift-divider {
width: 60px;
height: 3px;
background-color: #c89b3c;
margin: 12px auto 24px;
}

/* ==========================================================

ヒーローヘッダー（タイトル・リード文）
========================================================== */
.gift-hero-header {
background: linear-gradient(180deg, #fdfbf7 0%, #f7f1e5 100%);
padding: 36px 6px 28px;
text-align: center;
}

.gift-badge-top {
display: inline-block;
background-color: #8b261d;
color: #ffffff !important;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.15em;
padding: 4px 16px;
border-radius: 9999px;
margin-bottom: 12px;
text-transform: uppercase;
}

.gift-title-main {
font-size: 20px !important;
color: #332722 !important;
margin-bottom: 14px !important;
}
@media (min-width: 768px) {
.gift-title-main {
font-size: 28px !important;
}
}

.gift-lead-text {
font-size: 16px !important;
color: #55443d !important;
margin: 0 !important;
}

/* ==========================================================
2. ファーストビュー メインビジュアル
========================================================== */
.gift-mv-slider {
position: relative !important;
width: 100% !important;
max-width: 1200px !important;
height: 380px !important;
margin: 0 auto !important;
overflow: hidden !important;
background-color: #fdfbf7 !important;
}
@media (min-width: 768px) {
.gift-mv-slider {
height: 520px !important;
}
}

.gift-mv-slide {
position: absolute !important;
top: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
opacity: 0;
overflow: hidden !important;
animation: giftMvFade 15s infinite ease-in-out;
will-change: opacity;
}

.gift-mv-slide picture {
display: block !important;
position: absolute !important;
top: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
margin: 0 !important;
padding: 0 !important;
}

.gift-mv-slide img {
display: block !important;
width: 100% !important;
height: 100% !important;
min-height: 100% !important;
max-width: 100% !important;
max-height: 100% !important;
object-fit: cover !important;
object-position: center !important;
border: 0 !important;
margin: 0 !important;
padding: 0 !important;
}

.gift-mv-slide:nth-child(1) { animation-delay: 0s; }
.gift-mv-slide:nth-child(2) { animation-delay: 5s; }
.gift-mv-slide:nth-child(3) { animation-delay: 10s; }

@keyframes giftMvFade {
0% { opacity: 0; }
6.66% { opacity: 1; }
26.66% { opacity: 1; }
33.33% { opacity: 0; }
100% { opacity: 0; }
}

/* ==========================================================
3. 詳細な特集記事（シーン別）スタイリング
========================================================== */
.gift-article-wrap {
max-width: 1000px !important;
}

.gift-scene-lead {
text-align: center;
font-size: 15px;
color: #55443d;
margin-bottom: 40px;
}

.gift-article-row,
.gift-article-row-reverse {
display: flex;
flex-direction: column;
gap: 24px;
align-items: center;
margin-top: 20px;
margin-bottom: 20px;
}

@media (min-width: 768px) {
.gift-article-row {
flex-direction: row;
}
.gift-article-row-reverse {
flex-direction: row-reverse;
}
}

.gift-article-img-col {
width: 100%;
}
@media (min-width: 768px) {
.gift-article-img-col {
width: 50%;
}
}

.gift-article-img {
width: 100% !important;
height: auto !important;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
display: block;
}

.gift-article-text-col {
width: 100%;
}
@media (min-width: 768px) {
.gift-article-text-col {
width: 50%;
padding: 0 20px;
}
}

.gift-article-title {
font-size: 20px !important;
color: #332722 !important;
margin-bottom: 14px !important;
font-family: 'Noto Serif JP', serif !important;
font-weight: bold !important;
}
@media (min-width: 768px) {
.gift-article-title {
font-size: 22px !important;
}
}

.gift-article-desc {
font-size: 15px !important;
color: #55443d !important;
margin-bottom: 0.5rem !important;
line-height: 1.8 !important;
}

/* シーズンボックス（秋・冬のラタン） */
.gift-season-box {
background-color: #ffffe0a8;
padding: 36px 24px;
border-radius: 6px;
margin: 48px auto 20px;
max-width: 900px;
border: 1px solid none;
}

.gift-season-box h3 {
font-size: 20px !important;
color: #332722 !important;
text-align: center;
margin-bottom: 16px !important;
font-family: 'Noto Serif JP', serif !important;
font-weight: bold !important;
}
@media (min-width: 768px) {
.gift-season-box h3 {
font-size: 24px !important;
}
}

.gift-season-box p {
max-width: 800px;
margin: 0 auto;
font-size: 15px;
line-height: 1.8;
color: #55443d;
}

/* ==========================================================
4. 商品情報 横スライドコーナー (ACF動的出力)
========================================================== */
.bg-cream {
background-color: #f7f1e5;
}


.gift-slider-outer {
width: 100% !important;
overflow: hidden !important;
position: relative;
}

.gift-slider-wrapper {
display: flex !important;
flex-direction: row !important;
flex-wrap: nowrap !important;
overflow-x: auto !important;
scroll-snap-type: x mandatory !important;
gap: 20px !important;
padding-bottom: 24px;
padding-top: 10px;
-webkit-overflow-scrolling: touch !important;
width: 100% !important;
/* PCでもドラッグで操作しやすいカーソル設定 */
cursor: grab;
user-select: none;
}

/* ドラッグ中のカーソルと一時的なスナップ解除（滑らかな操作用） */
.gift-slider-wrapper.is-dragging {
cursor: grabbing;
scroll-snap-type: none !important;
}

.gift-slider-card {
scroll-snap-align: start !important;
flex: 0 0 auto !important;
width: 85vw !important;
max-width: 280px !important;
background-color: #ffffff;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
border: 1px solid #ebdccb;
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 20px;
}
@media (min-width: 768px) {
.gift-slider-card {
width: 280px !important;
}
}

.gift-slider-img {
width: 100% !important;
height: 300px !important;
object-fit: cover !important;
border-radius: 8px !important;
margin-bottom: 12px !important;
}

.gift-slider-title {
font-size: 16px !important;
font-weight: bold !important;
color: #332722 !important;
margin-bottom: 8px !important;
line-height: 1.4 !important;
}

#item-list  p.gift-slider-desc {
font-size: 14px !important;
color: #66554d !important;
margin-bottom: 16px !important;
line-height: 1.6 !important;
}

#item-list .gift-slider-card-bottom p.gift-price {
font-size: 18px !important;
color: #8b261d !important;
font-weight: bold !important;
text-align: right;
margin-bottom: 12px !important;
}
.gift-price span {
font-size: 11px !important;
font-weight: normal !important;
color: #777777 !important;
}

.gift-btn-detail {
display: block;
text-align: center;
border: 2px solid #8b261d;
color: #8b261d !important;
background-color: #ffffff;
font-size: 14px;
font-weight: bold;
padding: 10px 16px;
border-radius: 9999px;
text-decoration: none !important;
transition: all 0.3s ease;
max-width: 280px;
margin: 3px auto 6px;
}

.gift-btn-detail:hover {
background-color: #8b261d;
color: #ffffff !important;
}

.gift-slider-hint {
text-align: center;
font-size: 12px;
color: #88776d;
margin-top: 8px;
}

/* ==========================================================
5. エディタ内（the_content）カスタムコンテンツのスタイリング
========================================================== */
.gift-editor-wrap {
padding: 40px 16px;
background-color: #fdfbf7;
}

.gift-editor-inner {
max-width: 1100px;
margin: 0 auto;
background-color: #ffffff;
padding: 24px;
border-radius: 12px;
border: 1px solid #ebdccb;
}
@media (min-width: 768px) {
.gift-editor-inner {
padding: 40px;
}
}

#miura-gift-special .lp-custom-content {
color: #332722;
font-family: 'Noto Sans JP', sans-serif;
line-height: 1.8;
}

#miura-gift-special .lp-custom-content .section-title {
font-size: 24px;
color: #332722;
font-family: 'Noto Serif JP', serif;
text-align: center;
margin-bottom: 12px;
font-weight: bold;
}
@media (min-width: 768px) {
#miura-gift-special .lp-custom-content .section-title {
font-size: 28px;
}
}

#miura-gift-special .lp-custom-content .section-lead {
font-size: 15px;
color: #55443d;
text-align: center;
margin-bottom: 40px;
}

#miura-gift-special .scene-grid {
display: flex !important;
flex-wrap: wrap !important;
gap: 20px !important;
margin-bottom: 48px !important;
}

#miura-gift-special .scene-box {
flex: 1 1 280px !important;
background: #fdfbf7;
padding: 24px;
border-radius: 12px;
border: 1px solid #ebdccb;
box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

#miura-gift-special .scene-box h4 {
color: #8b261d !important;
font-size: 18px !important;
margin-bottom: 12px !important;
border-bottom: 2px solid #c89b3c !important;
padding-bottom: 8px !important;
font-weight: bold !important;
}

#miura-gift-special .season-box {
background-color: #f7f1e5;
padding: 36px 20px;
border-radius: 12px;
margin-bottom: 48px;
}

#miura-gift-special .season-box h3 {
font-size: 22px !important;
color: #332722 !important;
text-align: center;
margin-bottom: 20px !important;
font-family: 'Noto Serif JP', serif !important;
font-weight: bold !important;
}

#miura-gift-special .category-header {
margin-bottom: 32px;
padding-bottom: 12px;
border-bottom: 3px solid #8b261d;
}

#miura-gift-special .category-header h3 {
font-size: 24px !important;
color: #332722 !important;
font-family: 'Noto Serif JP', serif !important;
margin: 0 !important;
font-weight: bold !important;
}

#miura-gift-special .item-block {
margin-bottom: 48px;
padding-bottom: 32px;
border-bottom: 1px dashed #ebdccb;
}

#miura-gift-special .item-block:last-child {
border-bottom: none;
margin-bottom: 0;
}

#miura-gift-special .item-block h4 {
font-size: 20px !important;
color: #332722 !important;
margin-bottom: 8px !important;
font-weight: bold !important;
}

#miura-gift-special .item-price {
font-size: 18px !important;
color: #8b261d !important;
font-weight: bold !important;
margin-bottom: 16px !important;
}

#miura-gift-special .item-images {
display: flex !important;
flex-wrap: wrap !important;
gap: 16px !important;
margin-bottom: 24px !important;
}

#miura-gift-special .item-images > img,
#miura-gift-special .item-images > p,
#miura-gift-special .item-images > figure,
#miura-gift-special .item-images > a {
flex: 1 1 calc(50% - 16px) !important;
min-width: 220px !important;
max-width: 100% !important;
margin: 0 !important;
padding: 0 !important;
}

#miura-gift-special .item-images img {
width: 100% !important;
height: auto !important;
border-radius: 8px !important;
object-fit: cover !important;
aspect-ratio: 4 / 3 !important;
display: block !important;
border: 1px solid #ebdccb !important;
}

#miura-gift-special .buy-btn-wrap {
text-align: center;
margin-top: 24px;
}

#miura-gift-special .buy-btn {
display: inline-flex;
align-items: center;
justify-content: center;
background-color: #8b261d;
color: #ffffff !important;
font-size: 16px;
font-weight: bold;
text-decoration: none !important;
padding: 14px 40px;
border-radius: 9999px;
transition: all 0.3s ease;
box-shadow: 0 4px 12px rgba(139,38,29,0.25);
}

#miura-gift-special .buy-btn:hover {
opacity: 0.9;
transform: translateY(-2px);
background-color: #6e1e17;
}

#miura-gift-special .outdoor-wrapper {
background-color: #f0f7f7;
padding: 36px 20px;
border-radius: 12px;
margin-bottom: 48px;
border: 1px solid #cce3e3;
}

#miura-gift-special .outdoor-wrapper .category-header {
border-bottom: 3px solid #2b7a78;
}

#miura-gift-special .outdoor-wrapper .item-block {
border-bottom-color: #b2d8d8;
}

#miura-gift-special .outdoor-wrapper .buy-btn {
background-color: #2b7a78;
box-shadow: 0 4px 12px rgba(43,122,120,0.25);
}

#miura-gift-special .outdoor-wrapper .buy-btn:hover {
background-color: #205c5a;
}

/* ==========================================================
【追加コード】シーン直下の情報補完コンテンツボックス
========================================================== */
.gift-sub-content-box {
margin-top: 16px;
margin-bottom: 48px;
padding: 16px 12px;
border-radius: 12px;
background-color: #f7f1e5; / スマホ時: 背景色変更 */
border: 1px solid #ebdccb;
width: 100%;
}

@media (min-width: 768px) {
.gift-sub-content-box {
background-color: #ffffff; /* PC時: 白背景にしっかり囲み線 */
border: 2px solid #ebdccb;
border-radius: 16px;
padding: 24px;
margin-top: 20px;
margin-bottom: 60px;
}
}

/* サブコンテンツスライダー／グリッド構造 */
.gift-sub-content-slider {
display: flex !important;
flex-direction: row !important;
flex-wrap: nowrap !important;
overflow-x: auto !important;
scroll-snap-type: x mandatory !important;
gap: 16px !important;
-webkit-overflow-scrolling: touch !important;
width: 100% !important;
padding-bottom: 8px;
}

@media (min-width: 768px) {
.gift-sub-content-slider {
display: grid !important;
/* PC: 2〜4カラム配置（自動均等フィット） */
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
gap: 20px !important;
overflow-x: visible !important;
scroll-snap-type: none !important;
padding-bottom: 0;
}
}

/* 情報補完カード（各カラム） /
.gift-sub-card {
scroll-snap-align: start !important;
flex: 0 0 90% !important; / スマホ時: 左端カラム90%表示、残りは横スライド /
max-height: 500px !important; / PC/スマホともに最大高500px */
display: flex !important;
flex-direction: column !important;
justify-content: space-between !important;
background-color: #ffffff;
border-radius: 10px;
border: 1px solid #ebdccb;
padding: 16px;
box-shadow: 0 2px 6px rgba(0,0,0,0.03);
box-sizing: border-box !important;
overflow: hidden !important;
}

@media (min-width: 768px) {
.gift-sub-card {
flex: 1 1 0 !important;
width: 100% !important;
max-height: 500px !important;
}
}

.gift-sub-lead {
font-size: 16px !important;
font-weight: bold !important;
color: #8b261d !important;
margin-top: 4px !important;
margin-bottom: 8px !important;
line-height: 1.4 !important;
text-align: center;
display: block;
}

.gift-sub-img-wrap {
width: 100%;
height: 300px;
overflow: hidden;
border-radius: 6px;
margin-bottom: 10px;
background-color: #f7f1e5;
flex-shrink: 0;
}

.gift-sub-img-wrap img {
width: 100% !important;
height: 100% !important;
object-fit: cover !important;
display: block !important;
border: 0 !important;
margin: 0 !important;
}

#miura-gift-special p.gift-sub-desc {
font-size: 14px !important;
color: #55443d !important;
line-height: 1.6 !important;
margin-bottom: 12px !important;
margin-top: 0 !important;
flex-grow: 1;
overflow: hidden;
}

/* ==========================================================
【修正コード】画像2枚並び（.is-2col）レイアウト復元
========================================================== */

/* スマホ・PC共通：テキストと画像の表示順（スマホではテキスト先・画像後） */
@media (max-width: 767px) {
.gift-article-text-col {
order: 1 !important;
width: 100% !important;
}
.gift-article-img-col {
order: 2 !important;
width: 100% !important;
}
}

/* 画像2枚並び（.is-2col）コンテナのフレックス化 */
.gift-article-img-col.is-2col {
display: flex !important;
flex-direction: row !important;
gap: 12px !important;
width: 100% !important;
}

/* 画像2枚並び内の各画像スタイル（50%均等割り・アスペクト比維持） */
.gift-article-img-col.is-2col .gift-article-img {
flex: 1 1 calc(50% - 6px) !important;
width: calc(50% - 6px) !important;
max-width: calc(50% - 6px) !important;
height: auto !important;
aspect-ratio: 4 / 5 !important;
object-fit: cover !important;
border-radius: 10px !important;
box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
display: block !important;
}

/* PC（768px以上）での画像エリア幅指定 */
@media (min-width: 768px) {
.gift-article-img-col.is-2col {
width: 50% !important;
max-width: 50% !important;
}
}
/* スマホ・PC共通：スライダーコンテナの横スクロール動作強化 */
.gift-sub-content-slider {
display: flex !important;
flex-direction: row !important;
flex-wrap: nowrap !important;
overflow-x: auto !important;
scroll-snap-type: x mandatory !important;
gap: 14px !important;
width: 100% !important;
-webkit-overflow-scrolling: touch !important;
}

/* スマホ表示時（767px以下）：カードの横幅を固定保持し縮みを防止 */
@media (max-width: 767px) {
.gift-sub-card {
flex: 0 0 90% !important;
width: 90% !important;
min-width: 90% !important;
max-width: 90% !important;
flex-shrink: 0 !important;
scroll-snap-align: start !important;
}
}

/* PC表示時（768px以上）：均等グリッド配置へ復元 */
@media (min-width: 768px) {
.gift-sub-content-slider {
display: grid !important;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
gap: 20px !important;
overflow-x: visible !important;
scroll-snap-type: none !important;
}

.gift-sub-card {
    flex: 1 1 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}
