/*
Theme Name: GeneratePress Child
Template: generatepress
*/

/* =================================================================
   MST GLOBAL & LUXURY ZIGZAG LAYOUT (2026.01.08 Final v5)
   ================================================================= */

/* --- 1. Fonts & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Montserrat:wght@300;400;500&family=Noto+Serif+JP:wght@300;500&display=swap');

:root {
    --mst-black: #050505;
    --mst-gold: #C5A059;
    --mst-text: #E0E0E0;
    --font-cinzel: 'Cinzel', serif;
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Montserrat', sans-serif;
    --container-width: 1200px; /* 横並び用に少し広げました */
}

/* --- 2. Base Reset --- */
html, body {
    background: var(--mst-black) !important;
    color: var(--mst-text) !important;
    margin: 0 !important; padding: 0 !important;
    font-family: var(--font-sans) !important;
    overflow-x: hidden;
}
#page, .site, .site-content, #content, .site-main, .entry-content, .page-header {
    background: transparent !important;
    margin: 0 !important; padding: 0 !important; border: 0 !important;
    max-width: 100% !important;
}
.entry-title, .page-header { display: none !important; }
a { text-decoration: none; color: inherit; transition: .3s; }
a:hover { color: var(--mst-gold) !important; }
img { max-width: 100%; height: auto; vertical-align: bottom; }

/* PC/SP Display Control */
.pc-only { display: flex !important; }
.sp-only { display: none !important; }
@media (max-width: 900px) {
    .pc-only { display: none !important; }
    .sp-only { display: flex !important; }
}

/* --- 3. Header --- */
.mst-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(5,5,5,0.7); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05); height: 70px;
    display: flex; align-items: center;
}
body.admin-bar .mst-header { top: 32px !important; }
@media (max-width: 782px) { body.admin-bar .mst-header { top: 46px !important; } }

.mst-header__inner {
    width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center; height: 100%;
}
.mst-header__logo { margin-right: 40px !important; }
.mst-header__logo img {
    height: 28px !important; width: auto !important; object-fit: contain;
    border: none !important; background: transparent !important; margin: 0;
}
.mst-header__logo a { display: block; line-height: 0; }
.mst-header__nav { display: flex; gap: 30px; margin-left: auto; }
.mst-header__nav a { font-size: 0.75rem; letter-spacing: 0.15em; font-weight: 500; color: #fff; }
.mst-btn-outline-sm { border: 1px solid var(--mst-gold); padding: 8px 16px; color: var(--mst-gold) !important; }

#mst-menu-trigger {
    padding: 8px 16px; cursor: pointer; z-index: 9999; margin-left: auto;
}
#mst-menu-trigger .mst-trigger-text {
    font-family: var(--font-sans) !important; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: #fff;
}
.mst-mobile-menu {
    position: fixed; inset: 0; background: #050505; z-index: 1100;
    display: flex; flex-direction: column; padding-top: 100px; opacity: 0; pointer-events: none; transition: 0.3s; align-items: center;
}
.mst-mobile-menu.is-active { opacity: 1; pointer-events: auto; }
.mst-mobile-menu__nav { display: flex; flex-direction: column; gap: 30px; text-align: center; }
.mst-mobile-menu__nav a { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.1em; color: #fff; }

/* --- 4. Top Page Layouts (Keep) --- */
.mst-hero, .mst-section-wide {
    width: 100vw !important; position: relative !important;
    left: 50% !important; right: 50% !important; transform: translateX(-50%) !important;
    margin: 0 !important; padding: 0 !important; top: 0 !important;
    overflow: hidden !important; background: #000;
}
.mst-hero__bg, .mst-section-wide__bg, .mst-slot-frame img, .slot-wrapper img {
    position: absolute !important; top: 0; left: 0; width: 100% !important; height: 100% !important;
    object-fit: cover !important; z-index: 0;
}
.mst-hero { height: 100vh; min-height: 600px; display: flex; align-items: center; justify-content: center; }
.mst-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(5,5,5,1)); z-index: 1; pointer-events: none; }
.mst-hero__content { position: relative; z-index: 2; text-align: center; margin-top: -5vh; }
.mst-hero__title { font-family: var(--font-serif); font-size: clamp(2.5rem, 6vw, 5rem); color: #fff; margin-bottom: 2rem; font-weight: 300; }
.mst-hero__kicker { font-family: var(--font-display); color: var(--mst-gold); letter-spacing: 0.3em; margin-bottom: 1.5rem; display: block; }
.mst-section-wide { height: 70vh; min-height: 500px; display: flex; align-items: center; justify-content: center; }
.mst-section-wide__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); pointer-events: none; z-index: 1; }
.mst-section-wide__content { position: relative; z-index: 2; max-width: 800px; text-align: center; }
.mst-heading-lg { font-family: var(--font-display); font-size: 3rem; color: var(--mst-gold); margin-bottom: 2rem; letter-spacing: 0.1em; }

.mst-container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; position: relative; z-index: 10; }
.mst-section { padding: 100px 0; position: relative; }
.mst-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.mst-works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 900px) {
    .mst-grid, .mst-works-grid { grid-template-columns: 1fr; gap: 40px; }
    .mst-grid__media { order: 1; margin-bottom: 20px; } .mst-grid__text { order: 2; }
}
.mst-slot-frame { position: relative !important; width: 100% !important; display: block !important; background: #111; overflow: hidden; }
.mst-slot-frame:hover img { transform: scale(1.05); transition: transform 1s ease; }
.aspect-square { padding-top: 100%; }

/* =================================================================
   5. SINGLE PAGE (Expanded for Side-by-Side)
   ================================================================= */

/* 強制1カラム */
body.single .site-content { display: block !important; width: 100% !important; }
body.single #primary { width: 100% !important; float: none !important; }
body.single #right-sidebar, body.single #left-sidebar { display: none !important; }

/* 投稿用ヒーロー */
.mst-page-hero {
    width: 100vw !important; position: relative !important;
    left: 50% !important; right: 50% !important; transform: translateX(-50%) !important;
    margin: 0 !important; padding: 0 !important; top: 0 !important;
    background: #000; overflow: hidden;
    height: 70vh !important; min-height: 500px !important;
    display: flex !important; flex-direction: column !important;
    align-items: center !important; justify-content: center !important;
}
.mst-page-hero__bg { position: absolute !important; inset: 0 !important; z-index: 0 !important; }
.mst-page-hero__bg img { width: 100% !important; height: 100% !important; object-fit: cover !important; opacity: 0.6; }
.mst-page-hero__content { position: relative; z-index: 2; text-align: center; padding: 0 20px; margin-top: 40px; width: 100%; max-width: 1200px; }
.mst-page-hero__title {
    font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 3.5rem);
    color: #fff; font-weight: 500; line-height: 1.3;
    text-shadow: 0 10px 40px rgba(0,0,0,0.9);
    border-bottom: 1px solid var(--mst-gold); padding-bottom: 30px; display: inline-block;
}

/* 投稿本文（幅拡張） */
.mst-article-body {
    max-width: 1100px; /* 横並びが綺麗に見える幅へ拡張 */
    margin: 0 auto;
    padding: 80px 20px;
    color: var(--mst-text); font-family: var(--font-serif); font-size: 1rem; line-height: 2.2;
}

/* 汎用クラス (Tailwind互換) */
.mst-grid-2col {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin: 80px 0;
}
@media (max-width: 900px) {
    .mst-grid-2col { grid-template-columns: 1fr; gap: 40px; }
    /* スマホで画像を上にする用 */
    .mst-order-reverse .media { order: 1; margin-bottom: 20px; }
    .mst-order-reverse .text { order: 2; }
}

/* 本文内の要素 */
.mst-article-body p { margin-bottom: 2rem; text-align: justify; }
.mst-article-body img { width: 100%; height: auto; border: 1px solid rgba(255,255,255,0.1); }
.mst-article-body h2 {
    font-size: 1.8rem; color: #fff; margin: 100px 0 60px; text-align: center;
    font-family: var(--font-display); letter-spacing: 0.1em;
}

/* ページ送りナビ（ボタン化・視認性向上） */
.mst-post-nav {
    max-width: 1100px; margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 60px 20px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.mst-nav-link {
    display: flex; flex-direction: column; justify-content: center;
    width: 48%; min-height: 100px;
    text-decoration: none; transition: .3s;
    background: rgba(255,255,255,0.03); /* 薄い背景 */
    padding: 20px; border: 1px solid rgba(255,255,255,0.05);
}
.mst-nav-link:hover { background: rgba(197, 160, 89, 0.1); border-color: var(--mst-gold); }
.mst-nav-link.next { align-items: flex-end; text-align: right; }
.mst-nav-link.prev { align-items: flex-start; text-align: left; }

.mst-nav-label {
    font-family: var(--font-display); font-size: 10px; color: var(--mst-gold);
    letter-spacing: 0.2em; margin-bottom: 8px; display: block;
}
.mst-nav-title {
    font-family: var(--font-serif); font-size: 14px; color: #fff; line-height: 1.5; font-weight: 500;
}
@media (max-width: 768px) {
    .mst-nav-link { width: 100%; }
}

/* フッターCTA & 共通フッター */
.mst-cta { background: linear-gradient(to bottom, #0a0a0a, #000); padding: 100px 20px; text-align: center; }
.mst-cta__inner { max-width: 600px; margin: 0 auto; padding: 60px 30px; border: 1px solid rgba(197, 160, 89, 0.3); background: rgba(255, 255, 255, 0.02); }
.mst-btn--gold { display: inline-block; padding: 16px 50px; background: var(--mst-gold); color: #000; font-size: 0.9rem; letter-spacing: 0.15em; font-weight: 500; margin-top: 30px; }
.mst-footer { background: #000; padding: 60px 0 30px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.mst-footer__inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: flex-end; }
@media (max-width: 768px) { .mst-footer__inner { flex-direction: column; align-items: flex-start; gap: 30px; } }
/* =================================================================
   ADDITIONAL: Product & Work Templates Styles
   ================================================================= */

/* --- 商品スペック表 (.mst-spec-table) --- */
.mst-spec-table {
    width: 100%; border-collapse: collapse; margin: 40px 0 60px;
    font-family: var(--font-sans);
}
.mst-spec-table th, .mst-spec-table td {
    padding: 20px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mst-spec-table th {
    width: 30%; color: var(--mst-gold); font-weight: 500; letter-spacing: 0.1em;
}
.mst-spec-table td { color: #fff; }
.mst-price-area {
    text-align: center; margin: 60px 0; padding: 40px;
    border: 1px solid var(--mst-gold); background: rgba(197, 160, 89, 0.05);
}
.mst-price-label { display: block; font-size: 0.9rem; margin-bottom: 10px; color: #aaa; }
.mst-price-val { font-family: var(--font-cinzel); font-size: 2.5rem; color: #fff; }
.mst-price-note { font-size: 0.8rem; color: #888; display: block; margin-top: 10px; }


/* --- 作業工程フロー (.mst-work-step) --- */
.mst-work-step {
    margin-bottom: 80px; position: relative; padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,0.1);
}
.mst-work-step__num {
    position: absolute; top: -15px; left: -15px;
    width: 30px; height: 30px; background: var(--mst-gold); color: #000;
    border-radius: 50%; text-align: center; line-height: 30px;
    font-weight: 700; font-family: var(--font-cinzel);
}
.mst-work-step h3 {
    margin-top: 0 !important; padding-top: 5px; color: #fff !important; border: none !important;
}