/* ============================================
   mofuku.com - カスタムスタイル
   喪服・礼服レンタル専門店
============================================ */

/* 日本語フォント */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;600;700&display=swap');

/* ============================================
   テーマカラー上書き
   メインカラー: #8b7355（温かみのあるゴールドブラウン）
============================================ */
:root {
    --cnvs-themecolor: #8b7355;
    --cnvs-themecolor-rgb: 139, 115, 85;
    --cnvs-primary-menu-submenu-width: 200px; /* fallback */
    --mf-gold: #8b7355;
    --mf-dark: #1a1a1a;
    --mf-light-bg: #fafaf8;
    --mf-border: #e8e2d9;
    --mf-text-muted: #6c6c6c;
}

/* ============================================
   フォント設定
============================================ */
body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: #333;
    background-color: var(--mf-light-bg);
}

h1, h2, h3, h4 {
    font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', 'MS PMincho', serif;
    letter-spacing: 0.05em;
}

p, li, a, button, input, select, textarea {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
}

/* ============================================
   トップバー
============================================ */
#top-bar {
    background-color: var(--mf-dark) !important;
    color: #fff !important;
    font-size: 12px;
    letter-spacing: 0.2em;
    font-family: 'Noto Serif JP', serif;
    font-weight: 400;
}

#top-bar span,
#top-bar a {
    color: #fff !important;
}

/* ============================================
   ヘッダー
============================================ */
#header.sticky-header:not(.dark) {
    background-color: #fff;
    border-bottom: 1px solid var(--mf-border);
}

#logo a {
    text-decoration: none;
}

.primary-menu .menu-link > div {
    font-size: 12px;
    letter-spacing: 0.08em;
}

/* ドロップダウン幅 */
.is-expanded-menu .menu-container > .menu-item:not(.mega-menu) .sub-menu-container:not([class*=col-]):not([class=col]) {
    width: 200px !important;
}

/* 複数ナビブロック間のボーダー除去 */
.primary-menu + .primary-menu {
    border-top: none !important;
}

/* CTAセクション 電話ボタンのホバー */
.mf-tel-btn:hover {
    color: #fff !important;
}

/* 電話・カートアイコンのホバー */
.header-misc-icon a:hover i {
    color: var(--cnvs-themecolor) !important;
}

/* ロゴを真ん中に固定 (PCのみ) */
@media (min-width: 992px) {
    #header #header-wrap .container-fluid {
        position: relative;
    }

    #header #logo {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        z-index: 1;
    }
}

/* ============================================
   セクション共通
============================================ */
.section-subtitle-jp {
    color: var(--mf-gold);
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
}

.section-title-jp {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.75rem;
    color: var(--mf-dark);
    letter-spacing: 0.08em;
    line-height: 1.5;
}

/* ============================================
   ボタン
============================================ */
.button.bg-color {
    background-color: var(--mf-gold) !important;
    border-color: var(--mf-gold) !important;
}

.button.bg-color:hover {
    background-color: #6d5a3f !important;
    border-color: #6d5a3f !important;
}

/* ============================================
   フィーチャーボックス
============================================ */
.feature-icon {
    font-size: 2.5rem;
    color: var(--mf-gold);
    display: block;
    margin-bottom: 1rem;
}

.feature-icon ~ h3 {
    font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.feature-icon ~ p {
    font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
    font-weight: 400;
    line-height: 1.9;
}

/* ============================================
   レンタルの流れ
============================================ */
.flow-step {
    position: relative;
    text-align: center;
    padding: 2rem 1rem;
}

.flow-step .step-num {
    width: 48px;
    height: 48px;
    background: var(--mf-gold);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 400;
    font-family: 'EB Garamond', 'Times New Roman', serif;
    letter-spacing: 0.05em;
    margin: 0 auto 1rem;
}

.flow-step .step-icon {
    font-size: 2rem;
    color: var(--mf-gold);
    display: block;
    text-align: center;
    margin-bottom: 0.75rem;
}

.flow-step h5 {
    font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.6;
}

/* ============================================
   商品カード
============================================ */
.product-item {
    display: flex;
}

.product-card {
    background: #fff;
    border: 1px solid var(--mf-border);
    transition: box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.product-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 3/4;
}

.product-card .card-body {
    padding: 1.25rem;
    padding-top: calc(1.25rem + 28px);
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card .card-body > .product-badge,
.product-card .card-body > .badge-wrap {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
}

.product-card .card-body > .badge-wrap {
    display: flex;
    gap: 4px;
}

.product-card .card-body h4 {
    min-height: 2.8em;
    margin-top: 0 !important;
}

.product-card .product-price {
    color: var(--mf-gold);
    font-weight: 500;
    font-size: 0.95rem;
    margin-top: auto;
}

.product-badge {
    background-color: var(--mf-gold);
    color: #fff;
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 2px;
    letter-spacing: 0.1em;
    display: inline-block;
}

/* ============================================
   商品一覧フィルター
============================================ */
.category-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.category-filters .filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--mf-border);
    background: #fff;
    color: #555;
    font-size: 13px;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s;
    font-family: 'Noto Sans JP', sans-serif;
}

.category-filters .filter-btn:hover,
.category-filters .filter-btn.active {
    background: var(--mf-gold);
    border-color: var(--mf-gold);
    color: #fff;
}

/* ============================================
   商品詳細ページ
============================================ */
.product-detail-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    line-height: 1.5;
}

.product-detail-price {
    color: var(--mf-gold);
    font-size: 1.9rem;
    font-weight: 700;
}

.rental-form label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
    display: block;
    letter-spacing: 0.05em;
}

.rental-form select {
    border: 1px solid #ccc;
    padding: 10px 14px;
    width: 100%;
    margin-bottom: 16px;
    font-family: 'Noto Sans JP', sans-serif;
    border-radius: 3px;
    background-color: #fff;
    font-size: 14px;
    appearance: auto;
    color: #333;
}

.rental-form select:focus {
    outline: none;
    border-color: var(--mf-gold);
}

.btn-rental {
    background-color: var(--mf-dark);
    color: #fff;
    border: 2px solid var(--mf-dark);
    padding: 14px 32px;
    width: 100%;
    font-size: 16px;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    display: block;
    text-decoration: none;
    border-radius: 3px;
    margin: 0;
}

.btn-rental:hover {
    background-color: var(--mf-gold);
    border-color: var(--mf-gold);
    color: #fff;
}

.set-contents-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.set-contents-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--mf-border);
    font-size: 12px;
    color: #555;
}

.set-contents-list li:before {
    content: "✓";
    color: var(--mf-gold);
    font-weight: bold;
    margin-right: 10px;
}

/* 商品画像サムネイル */
.product-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.product-thumbnails img {
    width: 70px;
    height: 90px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}

.product-thumbnails img.active,
.product-thumbnails img:hover {
    border-color: var(--mf-gold);
}

/* ============================================
   料金プラン
============================================ */
.pricing-card {
    border: 1px solid var(--mf-border);
    background: #fff;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card .plan-list {
    flex: 1;
}

.pricing-card > a.button {
    margin-top: auto;
}

.pricing-card.recommended {
    background: var(--mf-dark);
    border-color: var(--mf-dark);
    color: #fff;
}

.pricing-card .plan-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.pricing-card .plan-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--mf-gold);
    margin: 1rem 0 0.25rem;
    line-height: 1;
}

.pricing-card.recommended .plan-price {
    color: var(--mf-gold);
}

.pricing-card .plan-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    font-size: 14px;
}

.pricing-card .plan-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--mf-border);
}

.pricing-card.recommended .plan-list li {
    border-color: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
}

/* ============================================
   お問い合わせ CTA
============================================ */
.cta-section {
    background: var(--mf-light-bg);
    border-top: 1px solid var(--mf-border);
    border-bottom: 1px solid var(--mf-border);
}

/* ============================================
   フッター
============================================ */
.footer-widgets-wrap {
    border-top: none !important;
    padding-top: 40px !important;
    padding-bottom: 60px !important;
}
#footer {
    border-top: none !important;
    background-color: #fff !important;
}

#footer h5 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #999;
    margin-bottom: 1rem;
}

#footer .widget_links a {
    font-size: 11px;
    color: #555;
    transition: color 0.2s;
}

#footer .widget_links a:hover {
    color: var(--mf-gold);
}

#footer .widget a.text-muted {
    transition: color 0.2s;
}

#footer .widget a.text-muted:hover {
    color: var(--mf-gold) !important;
}

#footer .widget p.small,
#footer .widget address.small,
#footer .widget p.text-muted {
    font-size: 11px !important;
}

#copyrights {
    font-size: 12px;
    color: #999;
    background-color: #fff !important;
}

#copyrights a.text-muted {
    transition: color 0.2s;
}

#copyrights a.text-muted:hover {
    color: var(--mf-gold) !important;
}

/* 受取センター 店舗情報 */
#footer-stores address,
#footer-stores .widget p.text-muted {
    font-size: 11px !important;
    line-height: 1.9 !important;
}

#footer-stores .widget p.small:first-child {
    font-size: 13px !important;
}

#footer-stores a.text-muted {
    transition: color 0.2s;
}

#footer-stores a.text-muted:hover {
    color: var(--mf-gold) !important;
}

/* ============================================
   パンくずリスト
============================================ */
.mf-breadcrumb {
    font-size: 12px;
    color: #999;
    padding: 1rem 0;
    letter-spacing: 0.03em;
}

.mf-breadcrumb a {
    color: #999;
    text-decoration: none;
}

.mf-breadcrumb a:hover {
    color: var(--mf-gold);
}

.mf-breadcrumb span {
    margin: 0 6px;
}

/* ============================================
   タッチデバイス: 1タップでサブメニュー展開
============================================ */
.is-expanded-menu .menu-item.mf-touch-open > .sub-menu-container {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-top: 0 !important;
    z-index: 399 !important;
    pointer-events: auto !important;
}

/* Canvas が子要素も display:none にするため個別に上書き */
.is-expanded-menu .menu-item.mf-touch-open > .sub-menu-container > * {
    display: block !important;
}

/* ============================================
   iPad Pro / 中間サイズ調整 (992px〜1199px)
============================================ */
@media (min-width: 992px) and (max-width: 1199px) {
    .primary-menu .menu-link {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .primary-menu .menu-link > div {
        font-size: 10px;
        letter-spacing: 0.03em;
    }

    .header-misc-icon {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
}

/* ============================================
   レスポンシブ調整
============================================ */
@media (max-width: 767px) {
    .section-title-jp {
        font-size: 1.4rem;
    }

    .flow-step {
        padding: 1.5rem 0.5rem;
    }

    .product-thumbnails img {
        width: 56px;
        height: 72px;
    }

    .product-badge {
        font-size: 8.5px;
        padding: 2px 7px;
    }
}

@keyframes mf-slide-down {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes mf-slide-up {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-10px); }
}
/* ハンバーガー開く: フェードイン（下から）*/
@keyframes mf-menu-open {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* ハンバーガー閉じる: フェードアウトのみ（背景はmax-heightで折りたたむ）*/
@keyframes mf-menu-close {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* ============================================
   モバイル: ヘッダーをスクロール時に上部に固定
   (トップバーは最初に表示され、スクロールで隠れる)
============================================ */
@media (max-width: 991px) {
    #header {
        position: sticky !important;
        top: 0;
        width: 100%;
        background-color: #fff !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border-bottom: none !important;
        z-index: 299;
    }
    #header-wrap {
        border-bottom: none !important;
        transition: none !important;
        -webkit-backface-visibility: visible !important;
        backface-visibility: visible !important;
    }

    #wrapper {
        padding-top: 0;
    }

    /* ハンバーガーメニュー: JS slideDown/slideUp（Kirk Mens 方式） */
    body:not(.is-expanded-menu) .primary-menu {
        display: block !important;
        overflow: hidden;
        height: 0;
    }
    /* .menu-container は常に表示 */
    body:not(.is-expanded-menu) .primary-menu .menu-container {
        display: block !important;
    }

    /* サブメニュー: 表示中のレイアウト（JS が height をアニメーション制御） */
    .primary-menu .menu-item.mf-touch-open > .sub-menu-container,
    .primary-menu .menu-item.mf-closing > .sub-menu-container {
        display: block !important;
        position: static !important;
        min-width: unset !important;
        box-shadow: none !important;
        border: none;
        background: transparent;
        padding: 0.4rem 0 0.4rem 1rem;
        overflow: hidden !important;
    }
    .primary-menu .menu-item.mf-touch-open > .sub-menu-container {
        margin-bottom: 0.25rem;
    }

    .primary-menu-trigger {
        margin-left: 12px;
    }
}
