/* =============================================================
   cmmn_layout.css
   全ページ共通 — モバイルヘッダー・ナビゲーション
   MakeShop アップロード先: /udnm/shared/css/cmmn_layout.css
============================================================= */

/* Shippori Mincho B1 は module/header の <link> で一元ロード済みのため @import 不要 */

.ms-catch {
    font-family: 'Shippori Mincho B1', 'Yu Mincho', '游明朝', 'Hiragino Mincho ProN', serif;
    font-weight: 500;
    text-shadow:
         0.4px  0.5px 1.2px rgba(20, 14, 8, 0.22),
        -0.2px -0.1px 0.6px rgba(20, 14, 8, 0.10),
         0.1px  0.0px 1.6px rgba(20, 14, 8, 0.07);
}
.ms-catch-pc {
    font-size: 13px;
    letter-spacing: 0.18em;
    line-height: 1.7;
    color: #2c2825;
    padding: 7px 12px;
    margin-top: 5px;
    margin-bottom: 16px;
    border-top: 1px solid rgba(28, 24, 20, 0.15);
    border-bottom: 1px solid rgba(28, 24, 20, 0.15);
    display: block;
    text-align: center;
}
.ms-catch-mobile {
    display: block;
    font-size: clamp(9px, 2.7vw, 11px);
    letter-spacing: 0.06em;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #5c5450;
    text-shadow:
         0.3px 0.4px 0.9px rgba(20, 14, 8, 0.18),
        -0.1px 0.0px 0.5px rgba(20, 14, 8, 0.08);
    margin-top: 3px;
    font-weight: 700;
}
.mh-icon-btn {
    position: relative;
    overflow: hidden;
}
.mh-icon-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: currentColor;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.25s, transform 0.25s;
}
.mh-icon-btn:active::after {
    opacity: 0.08;
    transform: scale(1);
}
.burger-bar {
    display: block;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
        opacity 0.25s ease,
        width 0.3s ease;
    transform-origin: center;
}
#mobile-menu-btn.is-open .burger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
#mobile-menu-btn.is-open .burger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#mobile-menu-btn.is-open .burger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
#mobile-menu-btn.is-open .burger-label {
    opacity: 0;
}
@keyframes mnSlideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}
#mobile-nav.is-open {
    animation: mnSlideDown 0.35s cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes popIn {
    from { opacity: 0; transform: scale(0.94) translateY(-8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes overlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
#mobile-member-popup.is-open {
    display: flex !important;
}
#mobile-member-popup.is-open .mh-popup-overlay {
    animation: overlayIn 0.25s ease both;
}
#mobile-member-popup.is-open .mh-popup-card {
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.mh-icon-label {
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.mh-icon-btn:hover .mh-icon-label,
.mh-icon-btn:focus .mh-icon-label {
    transform: translateY(1px);
}
.mh-icon-btn:hover .mh-icon-svg,
.mh-icon-btn:focus .mh-icon-svg {
    transform: scale(1.12);
}
.mh-icon-svg {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#mobile-nav {
    background: #faf9f7;
    border-top: 1px solid #e5e2dd;
}
.mn-main-nav {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    padding: 28px 16px 20px;
    border-bottom: 1px solid #e5e2dd;
    background: #faf9f7;
}
.mn-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 14px;
    border-right: 1px solid #ddd9d2;
    text-decoration: none;
    min-height: 44px;
}
.mn-nav-item:first-child {
    border-right: none;
}
.mn-nav-item span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Noto Serif JP', 'Yu Mincho', '游明朝', 'Hiragino Mincho ProN', serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: #1c1917;
    line-height: 1.2;
    transition: color 0.2s ease;
}
.mn-nav-item:hover span,
.mn-nav-item:active span {
    color: #cc0000;
}
.mn-shop-section {
    padding: 20px 20px 16px;
    border-bottom: 1px solid #e5e2dd;
    background: #f5f3f0;
}
.mn-section-title {
    font-family: 'Noto Serif JP', 'Yu Gothic', 'Hiragino Sans', sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
    color: #1c1917;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.mn-shop-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mn-shop-link {
    display: inline-flex;
    align-items: center;
    font-family: 'Noto Serif JP', serif;
    font-size: 13px;
    font-weight: 700;
    color: #2c2825;
    text-decoration: none;
    padding: 10px 16px;
    background: #fff;
    border: 2px solid #c9c5be;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
    min-height: 44px;
}
.mn-shop-link:hover,
.mn-shop-link:active {
    background: #cc0000;
    color: #fff;
    border-color: #cc0000;
}
.mn-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid #e5e2dd;
}
.mn-info-col {
    padding: 20px 16px 16px;
}
.mn-info-col:first-child {
    border-right: 1px solid #e5e2dd;
}
.mn-info-col h4 {
    font-family: 'Noto Serif JP', 'Yu Gothic', 'Hiragino Sans', sans-serif;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: #1c1917;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #ddd9d2;
}
.mn-info-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mn-info-col ul li a {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #44403c;
    text-decoration: none;
    padding: 9px 4px;
    line-height: 1.4;
    transition: color 0.18s;
    min-height: 44px;
}
.mn-info-col ul li a .mn-list-icon {
    flex-shrink: 0;
    color: #a8a29e;
    width: 10px;
    height: 10px;
}
.mn-info-col ul li a:hover {
    color: #cc0000;
}
.mn-store-section {
    padding: 16px 20px;
    background: #f5f3f0;
    border-bottom: 1px solid #e5e2dd;
}
.mn-store-section h4 {
    font-family: 'Noto Serif JP', serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #78716c;
    margin-bottom: 8px;
}
.mn-store-info {
    font-size: 13px;
    color: #1c1917;
    line-height: 2.0;
    font-weight: 500;
}
.mn-store-info a {
    color: #1c1917;
    text-decoration: none;
    font-weight: 700;
}
.mn-store-info a:hover {
    color: #cc0000;
}
.mn-store-tel {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    font-weight: 800;
    color: #1c1917;
    text-decoration: none;
    letter-spacing: 0.05em;
}
.mn-store-tel:hover {
    color: #cc0000;
}
.mn-map-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #1a73e8;
    text-decoration: none;
    margin-top: 4px;
}
.mn-map-link:hover {
    text-decoration: underline;
}
.mn-member-section {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mn-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 14px;
    padding: 13px 16px;
    background: #cc0000;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    letter-spacing: 0.06em;
    transition: background 0.18s, transform 0.15s;
    min-height: 44px;
}
.mn-cta-btn:hover,
.mn-cta-btn:active {
    background: #aa0000;
    color: #fff !important;
}
.mn-nav-item.is-current span { color: #cc0000; }
.mn-nav-item.is-current { position: relative; }
.mn-nav-item.is-current::after {
    content: '';
    display: block;
    width: 3px;
    height: 100%;
    background: #cc0000;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 2px;
}
.mn-info-col ul li a.is-current { color: #cc0000; font-weight: 700; }
.mn-shop-link.is-current { background: #cc0000; color: #fff; border-color: #cc0000; }
.mn-close-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 8px 12px;
    border-bottom: 1px solid #e5e2dd;
    background: #faf9f7;
}
.mn-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #78716c;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0.06em;
}
.mn-close-btn:hover {
    background: #f0ede8;
    color: #1c1917;
}
