/* ----------------------------------------------------------------
   MST Page CSS - WP Image Slots Compatible
   ---------------------------------------------------------------- */

/* Scope Root & Reset */
.mst-article {
    /* カラーパレット定義 */
    /*--bg-dark: #0b0b0b;*/
    --bg-card: #141414;
    --text-main: #f0f0f0;
    --text-sub: #999999;
    /*--accent: #00d2ff;*/     
    --line: rgba(255, 255, 255, 0.12);

    font-family: "Helvetica Neue", "Arial", sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
}

.mst-article *, 
.mst-article *::before, 
.mst-article *::after { box-sizing: border-box; }

/* Image Reset for WP Image Slots */
.mst-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    border-radius: 0;
}

/* Utilities */
.mst-article .mst-container {
    max-width: 1240px; margin: 0 auto; padding: 0 30px; width: 100%;
}
.mst-article .mst-section { padding: 120px 0; position: relative; overflow: hidden; }

/* Typography */
.mst-article .mst-heading-section {
    font-size: 2.2rem; font-weight: 300; letter-spacing: 0.15em; margin: 0 0 50px 0;
    text-align: center; color: #fff; font-family: "Oswald", sans-serif; text-transform: uppercase;
    display: flex; align-items: center; justify-content: center; gap: 15px;
}
.mst-article .mst-heading-section::before, 
.mst-article .mst-heading-section::after {
    content: ""; display: block; width: 40px; height: 1px; background: var(--accent); opacity: 0.7;
}
.mst-article .mst-heading-sm {
    font-size: 1rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--accent); margin: 0 0 20px 0; display: block; font-weight: 700;
}
.mst-article .mst-align-left { justify-content: flex-start; text-align: left; }
.mst-article .mst-align-left::before { display: none; }

/* Buttons */
.mst-article .mst-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 40px; text-decoration: none; transition: all 0.3s;
    font-size: 0.95rem; letter-spacing: 0.1em; border-radius: 2px; font-weight: 600; cursor: pointer;
}
.mst-article .btn-arrow { margin-left: 10px; transition: transform 0.3s ease; }
.mst-article .mst-btn:hover .btn-arrow { transform: translateX(5px); }
.mst-article .mst-btn-accent {
    background: var(--accent); color: #000; border: 1px solid var(--accent);
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.25);
}
.mst-article .mst-btn-accent:hover { background: #33dbff; color: #000; }
.mst-article .mst-btn-glass {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff; backdrop-filter: blur(4px);
}
.mst-article .mst-btn-glass:hover { background: rgba(255, 255, 255, 0.15); border-color: #fff; }
.mst-article .mst-btn-block { width: 100%; max-width: 400px; }
.mst-article .mst-text-link {
    color: #fff; text-decoration: none; border-bottom: 1px solid var(--accent);
    padding-bottom: 2px; font-size: 0.9rem; transition: all 0.3s; display: inline-block;
}
.mst-article .mst-text-link:hover { color: var(--accent); padding-bottom: 4px; }

/* 01 Main Visual */
.mst-article .mst-mv { height: 90vh; min-height: 650px; display: flex; align-items: center; justify-content: center; padding-top: 0; }
.mst-article .mst-mv-bg { position: absolute; inset: 0; z-index: 0; }
.mst-article .mst-mv-bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 90%, #0b0b0b 100%);
    pointer-events: none;
}
.mst-article .mst-mv-content { position: relative; z-index: 1; text-align: center; color: #fff; width: 100%; }
.mst-article .mst-mv-catch { font-size: 1.4rem; letter-spacing: 0.25em; margin: 0 0 20px 0; font-family: "YuMincho", serif; }
.mst-article .mst-mv-sub { font-size: 3.5rem; font-weight: 700; text-transform: uppercase; margin: 0 0 40px 0; font-family: "Oswald", sans-serif; }
.mst-article .mst-mv-buttons { display: flex; gap: 20px; justify-content: center; margin-top: 30px; }
.mst-article .mst-scroll-down {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2;
    font-size: 0.75rem; letter-spacing: 0.2em; color: rgba(255,255,255,0.6);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.mst-article .mst-scroll-down::after { content: ""; width: 1px; height: 40px; background: linear-gradient(to bottom, #fff, transparent); }

/* 02 Philosophy */
.mst-article .mst-philosophy { background: #111; }
.mst-article .mst-grid-2col { display: flex; gap: 80px; align-items: center; flex-wrap: wrap; }
.mst-article .mst-grid-2col > * { flex: 1; min-width: 300px; }
.mst-article .mst-ph-image-wrap { position: relative; padding: 20px 0 0 20px; }
.mst-article .mst-ph-deco {
    position: absolute; top: 0; left: 0; width: 60%; height: 60%;
    border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); z-index: 0;
}
.mst-article .mst-ph-image-wrap .mst-img-responsive { position: relative; z-index: 1; box-shadow: 0 10px 40px rgba(0,0,0,0.5); width: 100%; height: auto; display: block; }
.mst-article .mst-lead-text { font-size: 1.8rem; font-weight: 600; margin: 0 0 30px 0; font-family: "YuMincho", serif; }

/* 03 Core Service */
.mst-article .mst-core { background: #0b0b0b; }
.mst-article .mst-core-grid { display: flex; gap: 30px; flex-wrap: wrap; }
.mst-article .mst-core-card {
    flex: 1; min-width: 300px; position: relative; height: 600px;
    display: flex; align-items: flex-end; border: 1px solid rgba(255,255,255,0.1); overflow: hidden;
}
.mst-article .mst-core-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.6); }
.mst-article .mst-core-bg { position: absolute; inset: 0; transition: transform 0.6s ease; z-index: 0; }
.mst-article .mst-core-bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 10%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}
.mst-article .mst-core-card:hover .mst-core-bg { transform: scale(1.05); }
.mst-article .mst-core-content { position: relative; z-index: 1; padding: 50px 40px; width: 100%; }
.mst-article .mst-core-tag {
    display: inline-block; font-size: 0.8rem; color: var(--accent); letter-spacing: 0.15em;
    margin-bottom: 10px; font-family: "Oswald", sans-serif; text-transform: uppercase;
}
.mst-article .mst-core-title { font-size: 2.4rem; font-weight: 700; margin: 0 0 10px 0; font-family: "Oswald", sans-serif; line-height: 1; }
.mst-article .mst-core-subtitle { font-size: 1rem; color: #ccc; margin: 0 0 20px 0; border-left: 3px solid var(--accent); padding-left: 15px; }
.mst-article .mst-core-desc { font-size: 0.95rem; color: #bbb; margin: 0 0 30px 0; line-height: 1.7; opacity: 0.9; }

/* 03-B Promo Slider */
.mst-article .mst-promo { background: #0f0f0f; padding: 80px 0; border-top: 1px solid #1a1a1a; }
.mst-article .mst-promo-wrapper { position: relative; width: 100%; overflow: hidden; }
.mst-article .mst-promo-scroller {
    display: flex; gap: 30px; overflow-x: auto;
    scroll-snap-type: x mandatory; padding-bottom: 20px;
    -ms-overflow-style: none; scrollbar-width: none;
}
.mst-article .mst-promo-scroller::-webkit-scrollbar { display: none; }
.mst-article .mst-promo-card {
    flex: 0 0 calc(50% - 15px); scroll-snap-align: start;
    position: relative; aspect-ratio: 3 / 2;
    border-radius: 2px; overflow: hidden; background: #000;
    border: 1px solid rgba(255,255,255,0.1); transition: all 0.3s;
}
.mst-article .mst-promo-card:hover { border-color: var(--accent); }
.mst-article .mst-promo-bg { position: absolute; inset: 0; z-index: 0; transition: transform 0.5s ease; }
.mst-article .mst-promo-card:hover .mst-promo-bg { transform: scale(1.05); }
.mst-article .mst-promo-bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.2));
    pointer-events: none;
}
.mst-article .mst-promo-content {
    position: relative; z-index: 1; width: 100%; height: 100%;
    display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
    padding: 40px;
}
.mst-article .mst-promo-tag {
    background: var(--accent); color: #000; font-size: 0.7rem; font-weight: bold;
    padding: 2px 10px; margin-bottom: 15px; display: inline-block;
    font-family: "Oswald", sans-serif; letter-spacing: 0.05em;
}
.mst-article .mst-promo-title { font-size: 1.5rem; margin: 0 0 10px 0; font-weight: 600; line-height: 1.3; }
.mst-article .mst-promo-text {
    font-size: 0.9rem; color: #ccc; margin: 0 0 20px 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mst-article .mst-promo-link {
    font-size: 0.85rem; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 2px; transition: border-color 0.3s; display: inline-flex; align-items: center;
}
.mst-article .mst-promo-link::after { content: "→"; margin-left: 5px; transition: transform 0.3s; }
.mst-article .mst-promo-card:hover .mst-promo-link { border-color: var(--accent); color: var(--accent); }
.mst-article .mst-promo-card:hover .mst-promo-link::after { transform: translateX(5px); }

/* 04 Total Coordinate (3 Columns Flex) */
.mst-article .mst-total { background: #111; }
.mst-article .mst-section-desc {
    text-align: center; color: #666; margin-top: 15px !important; margin-bottom: 60px !important;
    font-size: 1rem; letter-spacing: 0.2em; font-family: "Oswald", sans-serif; text-transform: uppercase;
}

.mst-article .mst-total-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    width: 100% !important;
    justify-content: flex-start !important;
}

.mst-article .mst-total-card {
    display: flex !important;
    flex-direction: column !important;
    width: 31% !important; 
    flex: 1 1 300px !important;
    max-width: calc((100% - 60px) / 3) !important;
    min-width: 0 !important;
    text-decoration: none;
    background: #141414;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: 400px;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.mst-article .mst-total-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.mst-article .mst-total-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}
.mst-article .mst-total-thumb img {
    transition: transform 0.6s ease;
    filter: grayscale(30%);
}
.mst-article .mst-total-card:hover .mst-total-thumb img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.mst-article .mst-total-content {
    padding: 30px;
    flex: 1 !important;
    display: flex;
    flex-direction: column;
}
.mst-article .mst-total-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
    font-family: "Oswald", sans-serif;
    letter-spacing: 0.05em;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mst-article .mst-total-title::after {
    content: "→"; font-size: 1rem; color: #666;
    transition: all 0.3s; opacity: 0; transform: translateX(-10px);
}
.mst-article .mst-total-card:hover .mst-total-title::after {
    opacity: 1; transform: translateX(0); color: var(--accent);
}
.mst-article .mst-total-desc { font-size: 0.9rem; color: #999; line-height: 1.8; margin-bottom: 0; }

/* 04-B Information */
.mst-article .mst-info { background: #0b0b0b; padding-top: 60px; padding-bottom: 100px; }
.mst-article .mst-info-container { max-width: 900px; margin: 0 auto; padding: 0 30px; }
.mst-article .mst-info-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.mst-article .mst-info-item {
    display: flex; align-items: center; gap: 25px;
    padding: 15px 25px;
    border: 1px solid rgba(255,255,255,0.08); border-radius: 4px;
    background: rgba(255,255,255,0.01);
    transition: all 0.3s ease; text-decoration: none;
}
.mst-article .mst-info-item:hover {
    border-color: var(--accent); background: rgba(0, 210, 255, 0.05);
    transform: translateX(5px); box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.mst-article .mst-info-meta { display: flex; align-items: center; gap: 15px; min-width: 140px; }
.mst-article .mst-info-date { font-family: "Oswald", sans-serif; color: #888; font-size: 0.9rem; transition: color 0.3s; }
.mst-article .mst-info-tag {
    font-size: 0.7rem; padding: 2px 8px; border: 1px solid #444; color: #ccc;
    border-radius: 2px; white-space: nowrap; transition: all 0.3s;
}
.mst-article .mst-info-item:hover .mst-info-date { color: #fff; }
.mst-article .mst-info-title {
    font-size: 1rem; color: #ddd; font-weight: 400; flex: 1;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.3s;
}
.mst-article .mst-info-item:hover .mst-info-title { color: #fff; }
.mst-article .mst-info-btn-wrap { text-align: right; }
.mst-article .mst-link-sm {
    font-size: 0.85rem; color: #888; text-decoration: none; transition: color 0.3s;
    display: inline-flex; align-items: center; gap: 5px;
}
.mst-article .mst-link-sm:hover { color: #fff; }


/* 05 Works */
.mst-article .mst-works { background: #0b0b0b; }
.mst-article .mst-works-cat { font-size: 1.2rem; color: #ddd; margin: 0 0 30px 0; font-weight: 600; display: flex; align-items: center; }
.mst-article .mst-works-cat::before {
    content: ""; display: inline-block; width: 8px; height: 8px;
    background: var(--accent); margin-right: 15px; transform: rotate(45deg);
}
.mst-article .mst-works-grid {
    display: flex !important; flex-wrap: wrap !important; gap: 20px !important; width: 100% !important;
}
.mst-article .mst-work-item {
    display: block !important; width: calc((100% - 40px) / 3) !important; max-width: calc((100% - 40px) / 3) !important;
    flex: 0 0 calc((100% - 40px) / 3) !important; margin: 0 !important;
}
.mst-article .mst-work-thumb {
    position: relative; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 15px; width: 100% !important;
}
.mst-article .mst-work-thumb img {
    transition: transform 0.5s ease;
}
.mst-article .mst-work-item:hover .mst-work-thumb img { transform: scale(1.05); }
.mst-article .mst-work-info { padding-left: 5px; border-left: 1px solid rgba(255,255,255,0.2); transition: border-color 0.3s; }
.mst-article .mst-work-item:hover .mst-work-info { border-left-color: var(--accent); }
.mst-article .mst-work-model { display: block; font-size: 0.95rem; color: #fff; font-weight: 600; margin-bottom: 4px; }
.mst-article .mst-work-menu { display: block; font-size: 0.8rem; color: #888; }
.mst-article .mst-center-btn { text-align: center; margin-top: 60px; }

/* 06 Contact */
.mst-article .mst-contact {
    background: #111; border-top: 1px solid #222;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 10px);
}
.mst-article .mst-contact-info { flex: 1; }
.mst-article .mst-contact-lead { margin: 0 0 40px 0; font-size: 1rem; color: #ccc; line-height: 2; }
.mst-article .mst-tel { font-size: 1.4rem; color: #fff; font-family: "Oswald", sans-serif; letter-spacing: 0.05em; }
.mst-article .mst-contact-action { background: rgba(0,0,0,0.3); border: 1px solid var(--line); padding: 50px; text-align: center; flex: 1; }
.mst-article .mst-action-text { font-size: 0.9rem; color: var(--accent); margin-bottom: 25px; font-weight: 600; letter-spacing: 0.1em; }


/* Responsive Adjustments */
@media screen and (max-width: 900px) {
    .mst-article .mst-grid-2col { grid-template-columns: 1fr; gap: 50px; }
    .mst-article .mst-ph-image-wrap { order: -1; padding: 10px; }
    .mst-article .mst-ph-deco { display: none; }
    .mst-article .mst-core-grid { grid-template-columns: 1fr; gap: 40px; }
    .mst-article .mst-core-card { height: 500px; }
    
    /* Total Coordinate (Tablet): 2 cards + 1 card wrap */
    .mst-article .mst-total-card {
        width: 47% !important;
        max-width: 47% !important;
        flex: 1 1 47% !important;
    }
    
    .mst-article .mst-work-item {
        width: calc((100% - 20px) / 2) !important; flex: 0 0 calc((100% - 20px) / 2) !important; max-width: calc((100% - 20px) / 2) !important;
    }
    .mst-article .mst-mv-sub { font-size: 2.8rem; }
    .mst-article .mst-mv-buttons { flex-direction: column; width: 300px; margin: 30px auto; }
}

@media screen and (max-width: 600px) {
    .mst-article .mst-promo-card { flex: 0 0 90%; }
    .mst-article .mst-promo-scroller { gap: 15px; padding-left: 20px; padding-right: 20px; }
    
    .mst-article .mst-info-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 15px; }
    .mst-article .mst-info-meta { width: 100%; }
    .mst-article .mst-info-title { white-space: normal; }

    /* Smartphone Force Single Column */
    .mst-article .mst-total-card {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .mst-article .mst-work-item {
        width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important;
    }

    .mst-article .mst-section { padding: 80px 0; }
    .mst-article .mst-mv-sub { font-size: 2.2rem; }
    .mst-article .mst-core-card { height: 450px; }
    .mst-article .mst-core-content { padding: 30px 20px; }
    .mst-article .mst-contact-action { padding: 30px 20px; }
    .mst-article .mst-container { padding: 0 20px; }
    .mst-article .mst-grid-2col { gap: 40px; }
}
/* --- Background Patterns (画像なし時の背景装飾) --- */

/* =========================================================
   Background Patterns (Grey / Subtle Mode)
   ========================================================= */

/* パターンのベース設定 */
.mst-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    
    /* 色をグレーにしたので、少しだけ不透明度を上げて視認性を確保します */
    /* 濃すぎると感じる場合は 0.05 くらいに下げてください */
    opacity: 0.1; 
}

/* 1. Diagonal (斜線) - チラつき防止のためにピッチを調整 */
.mst-pattern-diagonal {
    background-image: repeating-linear-gradient(
        45deg,
        #808080 0,
        #808080 1px,
        transparent 0.5px,
        transparent 12px  /* 間隔を 4px -> 8px に広げました */
    );
}

/* 2. Grid (グリッド) - グレー */
.mst-pattern-grid {
    background-image:
        linear-gradient(#808080 0.5px, transparent 0.5px), /* グレーに変更 */
        linear-gradient(90deg, #808080 0.5px, transparent 0.5px); /* グレーに変更 */
    background-size: 10px 10px;
}

/* 3. Dot (ドット) - グレー */
.mst-pattern-dot {
    background-image: radial-gradient(#808080 1px, transparent 1px); /* グレーに変更 */
    background-position: 0 0;
    background-size: 6px 6px;
}

/* 4. Cross (クロス) - グレー */
.mst-pattern-cross {
    background:
        linear-gradient(45deg, transparent 48%, #808080 48%, #808080 52%, transparent 52%), /* グレーに変更 */
        linear-gradient(-45deg, transparent 48%, #808080 48%, #808080 52%, transparent 52%); /* グレーに変更 */
    background-size: 8px 8px;
}
/* =========================================================
   MST Front Styles (Hero & Components)
   ========================================================= */

/* --- Hero Section (Main Visual) --- */
.mst-mv {
    position: relative;
    width: 100%;
    height: 100vh; /* 画面いっぱいに広げる */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.mst-mv-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.mst-mv-bg img {
    width: 100%; height: 100%; object-fit: cover;
}
/* 画像を暗くするオーバーレイ */
.mst-mv-bg::after {
    content: ""; position: absolute; inset: 0;
    background: rgba(0,0,0,0.4); /* 暗さの調整 */
}

.mst-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

/* --- Text & Headlines --- */
.mst-mv-catch {
    font-size: 1rem;
    letter-spacing: 0.2em;
    margin-bottom: 15px;
    opacity: 0.9;
    font-family: serif; /* 明朝体っぽく */
}

.mst-mv-sub {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 50px;
    line-height: 1.1;
    font-family: sans-serif;
}

/* --- Buttons (3つまで対応) --- */
.mst-mv-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.mst-btn {
    display: inline-flex;
    flex-direction: column; /* 文字と矢印を縦に積むレイアウト対応 */
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 140px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.btn-label {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
}

.btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

/* Hover Effect */
.mst-btn:hover {
    transform: translateY(-5px);
}
.mst-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* 1. Accent Button (Cyan) */
.mst-btn-accent {
    background-color: var(--accent, #00d2ff);
    color: #000;
    border-color: var(--accent, #00d2ff);
}
.mst-btn-accent:hover {
    background-color: #33dbff;
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.3);
}

/* 2. Glass Button (Transparent) */
.mst-btn-glass {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    backdrop-filter: blur(5px);
}
.mst-btn-glass:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* --- Scroll Down Indicator --- */
.mst-scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    font-family: sans-serif;
}

.mst-scroll-down span {
    display: block;
}

/* 縦線の描画 */
.mst-scroll-down::after {
    content: "";
    display: block;
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

/* 線が流れるアニメーション */
.mst-scroll-down::before {
    content: "";
    position: absolute;
    top: 25px; /* 文字の下あたりから開始 */
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 0;
    background: #fff;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { top: 30px; height: 0; opacity: 0; }
    30% { height: 40px; opacity: 1; }
    100% { top: 90px; height: 0; opacity: 0; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mst-mv-sub { font-size: 2rem; }
    .mst-mv-buttons { flex-direction: column; align-items: center; gap: 15px; }
    .mst-btn { width: 100%; max-width: 300px; height: 60px; flex-direction: row; gap: 15px; }
    .btn-label { margin-bottom: 0; font-size: 0.9rem; }
}
/* =========================================================
   Content Slider (Promo Card) Design
   ========================================================= */

/* スライダー全体のコンテナ */
.mst-promo-scroller {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 30px; /* スクロールバーの干渉回避 */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.mst-promo-scroller::-webkit-scrollbar { display: none; }

/* カード本体 */
.mst-promo-card {
    flex: 0 0 45%; /* PCでは2枚並び強 */
    min-width: 320px;
    scroll-snap-align: start;
    position: relative;
    aspect-ratio: 16 / 9; /* 横長比率 */
    background: #000;
    overflow: hidden;
    border-radius: 2px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mst-promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

/* 背景画像 */
.mst-promo-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: transform 0.6s ease;
}
.mst-promo-bg img {
    width: 100%; height: 100%; object-fit: cover;
}
.mst-promo-card:hover .mst-promo-bg {
    transform: scale(1.05); /* ホバーで少し拡大 */
}

/* 黒グラデーションオーバーレイ */
.mst-promo-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    /* 下から上へ黒くなるグラデーション */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
}

/* コンテンツエリア */
.mst-promo-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直中央配置 */
    align-items: flex-start;
}

/* 左上のタグ (SECURITY, AUDIO 等) */
.mst-promo-tag {
    background-color: var(--accent, #00d2ff);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    display: inline-block;
}

/* タイトル */
.mst-promo-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 15px;
    font-family: sans-serif;
}

/* 本文 (抜粋) */
.mst-promo-text {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 25px;
    /* 3行で省略 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 詳しく見るリンク */
.mst-promo-link {
    font-size: 0.9rem;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 2px;
    transition: border-color 0.3s, color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.mst-promo-link::after {
    content: "→";
    transition: transform 0.3s;
}
.mst-promo-card:hover .mst-promo-link {
    border-bottom-color: var(--accent, #00d2ff);
    color: var(--accent, #00d2ff);
}
.mst-promo-card:hover .mst-promo-link::after {
    transform: translateX(5px);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .mst-promo-card {
        flex: 0 0 85%; /* スマホでは大きく1枚表示 */
        aspect-ratio: 4 / 3;
    }
    .mst-promo-title { font-size: 1.3rem; }
    .mst-promo-content { padding: 25px; }
}
/* =========================================================
   Philosophy Section Design (修正版)
   ========================================================= */

.mst-philosophy {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

/* 2カラムレイアウト */
.mst-grid-2col {
    display: flex;
    gap: 80px;
    align-items: center;
    justify-content: center;
}

/* --- 左側：画像エリア --- */
.mst-ph-image-wrap {
    flex: 1;
    position: relative;
    /* ラインを見せるために余白を広げる */
    padding-top: 30px; 
    padding-left: 30px;
}

/* L字型の青いライン装飾（修正版：シャープ＆ロング） */
.mst-ph-deco {
    position: absolute;
    top: -5px;  /* 少し外側に飛び出させる */
    left: -5px; /* 少し外側に飛び出させる */
    width: 60%;  /* 長くする */
    height: 80%; /* 長くする */
    border-top: 1px solid var(--accent, #00d2ff); /* ★細くシャープに (1px) */
    border-left: 1px solid var(--accent, #00d2ff); /* ★細くシャープに (1px) */
    z-index: 0;
    display: block;
    pointer-events: none;
}

/* スマホでの調整 */
@media (max-width: 900px) {
    .mst-ph-deco {
        width: 150px;
        height: 150px;
        top: 0;
        left: 0;
    }
}

.mst-ph-image-wrap .mst-img-responsive {
    position: relative;
    z-index: 1; /* 画像を上に */
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* --- 右側：テキストエリア --- */
.mst-ph-text {
    flex: 1;
    text-align: left;
}

/* 英語の小見出し (PHILOSOPHY) - 太く修正 */
.mst-heading-sm {
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 800 !important; /* ★太字に強制変更 */
    font-family: sans-serif;
}

/* 日本語の大見出し (明朝体) - 白文字に修正 */
.mst-lead-text {
    font-family: "YuMincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 2.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 500;
    color: #ffffff !important; /* ★白文字を強制 */
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* 読みやすく影を追加 */
}

/* 本文 */
.mst-desc-text {
    font-size: 1rem;
    line-height: 2.2;
    color: #ccc;
    font-family: sans-serif;
}

/* --- スマホ対応 --- */
@media (max-width: 900px) {
    .mst-grid-2col {
        flex-direction: column;
        gap: 50px;
    }
    
    .mst-ph-image-wrap {
        width: 100%;
        padding-top: 20px;
        padding-left: 20px;
        order: -1;
    }
    
    .mst-ph-deco {
        width: 100px;
        height: 100px;
        border-width: 4px;
    }

    .mst-ph-text {
        width: 100%;
        padding: 0 10px;
    }

    .mst-lead-text {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
}
/* =========================================================
   New Sections: Core Service & Total Coordinate
   ========================================================= */
/* =========================================================
   Core Service (2カラム画像カード) - アニメーション強化版
   ========================================================= */

.mst-core-heading-wrap {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.mst-core-heading {
    font-size: 1.8rem;
    color: #fff;
    font-family: serif;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0;
}
.mst-core-heading-wrap::before, .mst-core-heading-wrap::after {
    content: ""; display: block; width: 60px; height: 1px; background-color: var(--accent, #00d2ff);
}

.mst-core-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px; /* 全体の幅を制限 */
    margin: 0 auto;
}

.mst-core-card {
    position: relative;
    aspect-ratio: 1 / 1; /* 正方形 */
    width: 100%;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: flex-end;
    /* ★動きの設定: 浮き上がりをスムーズに */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

/* ★ホバー時の動き: 枠ごと飛び出る */
.mst-core-card:hover {
    transform: translateY(-10px); /* 上に10px浮く */
    box-shadow: 0 20px 40px rgba(0,0,0,0.6); /* 濃い影を落とす */
    border-color: rgba(255,255,255,0.3); /* 枠線も少し明るく */
    z-index: 2;
}

.mst-core-bg {
    position: absolute; inset: 0; z-index: 0;
    transition: transform 0.8s ease; /* ズームはゆっくり */
}
.mst-core-bg img { width: 100%; height: 100%; object-fit: cover; }
.mst-core-bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0) 100%);
}

/* ★ホバー時の動き: 背景ズーム */
.mst-core-card:hover .mst-core-bg {
    transform: scale(1.1); /* 1.1倍にズーム */
}

/* コンテンツ（変更なし） */
.mst-core-content { position: relative; z-index: 1; padding: 35px; width: 100%; }
.mst-core-tag { display: block; font-size: 0.7rem; color: var(--accent, #00d2ff); letter-spacing: 0.15em; margin-bottom: 8px; font-weight: 700; text-transform: uppercase; }
.mst-core-title { font-size: 1.8rem; color: #fff; margin: 0 0 10px 0; font-family: serif; line-height: 1.2; }
.mst-core-subtitle { font-size: 0.85rem; color: #ccc; margin: 0 0 15px 0; padding-left: 12px; border-left: 3px solid var(--accent, #00d2ff); }
.mst-core-desc { font-size: 0.85rem; color: #aaa; line-height: 1.6; margin-bottom: 0; }
.mst-core-link { font-size: 0.8rem; color: #fff; border-bottom: 1px solid #666; padding-bottom: 2px; margin-top: 20px; display: inline-block; }


/* =========================================================
   Total Coordinate (3カラムカード) - 光るライン版
   ========================================================= */

.mst-total-header { text-align: center; margin-bottom: 60px; }
.mst-total-title { font-size: 1.8rem; color: #fff; letter-spacing: 0.1em; font-family: serif; display: inline-flex; align-items: center; gap: 20px; text-transform: uppercase; }
.mst-total-title::before, .mst-total-title::after { content: ""; display: block; width: 40px; height: 1px; background: var(--accent, #00d2ff); }
.mst-total-sub { font-size: 0.8rem; color: #666; letter-spacing: 0.2em; margin-top: 15px; text-transform: uppercase; }

.mst-total-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    /* 全体の枠線はカード側で制御するため削除 */
    /* border-left: 1px solid rgba(255,255,255,0.1); */
}

.mst-total-card {
    position: relative; /* 重なり制御用 */
    border: 1px solid rgba(255,255,255,0.1); /* 全周に薄い線 */
    margin-right: -1px; /* 隣の線と重ねるテクニック */
    margin-bottom: -1px; /* 下の線と重ねるテクニック */
    padding: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 1; /* 通常時は奥 */
    background: transparent;
}

/* ★ホバー時の動き: ライン発光 */
.mst-total-card:hover {
    background: rgba(255,255,255,0.02);
    z-index: 10; /* ホバーしたカードを最前面へ（線が隠れないように） */
    
    /* ボーダーの色変更 + 光るエフェクト(box-shadow) */
    border-color: var(--accent, #00d2ff);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2), inset 0 0 10px rgba(0, 210, 255, 0.05);
}

.mst-total-thumb { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 25px; }
.mst-total-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.mst-total-card:hover .mst-total-thumb img { transform: scale(1.05); }

.mst-total-card-title { font-size: 1.2rem; color: #fff; margin-bottom: 15px; font-weight: 600; }
.mst-total-card-desc { font-size: 0.9rem; color: #999; line-height: 1.8; }

/* Mobile */
@media (max-width: 900px) {
    .mst-core-grid { grid-template-columns: 1fr; max-width: 100%; }
    .mst-core-heading-wrap::before, .mst-core-heading-wrap::after { width: 30px; }
    
    .mst-total-grid { grid-template-columns: 1fr; gap: 40px; }
    .mst-total-card { border: none; margin: 0; padding: 0; }
    /* スマホでは光る線を枠ではなく下線にするなど控えめに */
    .mst-total-card:hover { border: none; box-shadow: none; }
}
/* =========================================================
   Works Section (制作実績)
   ========================================================= */

/* カテゴリー見出し (♦ Audio & Interior) */
.mst-works-cat-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-left: 5px;
}
.mst-works-cat-icon {
    width: 8px;
    height: 8px;
    background-color: var(--accent, #00d2ff);
    transform: rotate(45deg); /* ひし形にする */
    box-shadow: 0 0 10px var(--accent, #00d2ff); /* 少し光らせる */
}
.mst-works-cat-title {
    font-size: 1.1rem;
    color: #ccc;
    font-weight: 500;
    letter-spacing: 0.05em;
    font-family: sans-serif;
}

/* グリッドレイアウト */
.mst-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* カード本体 */
.mst-works-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #1a1a1a; /* テキストエリアの背景色 */
    transition: transform 0.3s ease;
}
.mst-works-card:hover {
    transform: translateY(-5px); /* 全体が少し浮く */
}

/* サムネイル画像 */
.mst-works-thumb {
    width: 100%;
    aspect-ratio: 4 / 3; /* 比率を固定 */
    overflow: hidden;
    position: relative;
}
.mst-works-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
/* ホバーで画像ズーム */
.mst-works-card:hover .mst-works-thumb img {
    transform: scale(1.1);
}

/* テキストエリア (左線つき) */
.mst-works-info {
    padding: 20px 25px;
    position: relative;
    
    /* 通常時の縦線 */
    border-left: 3px solid #444; 
    
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* ★ホバー演出: 縦線が光る */
.mst-works-card:hover .mst-works-info {
    border-left-color: var(--accent, #00d2ff); /* 色が変わる */
    
    /* 縦線が発光しているような影をつける */
    box-shadow: inset 10px 0 15px -10px rgba(0, 210, 255, 0.4);
}

.mst-works-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.4;
}
.mst-works-desc {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.5;
}

/* スマホ対応 */
@media (max-width: 900px) {
    .mst-works-grid {
        grid-template-columns: 1fr; /* 1列 */
        gap: 30px;
    }
}

    /* =========================================================
   Contact Section (New Design)
   ========================================================= */

.mst-contact-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* 高さを合わせる */
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- 左側：情報エリア --- */
.mst-contact-info {
    flex: 1; /* 残りの幅を使う */
    padding-top: 20px;
}

.mst-contact-heading {
    font-size: 2.5rem;
    font-family: serif;
    color: #fff;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
}

.mst-contact-desc {
    font-size: 0.95rem;
    line-height: 2;
    color: #ccc;
    margin-bottom: 50px;
}

/* 会社情報リスト (dl, dt, dd) */
.mst-contact-list {
    display: grid;
    grid-template-columns: 100px 1fr; /* ラベル幅固定 +残り */
    gap: 15px 0; /* 行間 */
    border-top: 1px solid #333;
    padding-top: 20px;
}

.mst-contact-label {
    font-weight: 700;
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.mst-contact-value {
    color: #fff;
    font-size: 0.95rem;
    margin: 0;
    font-family: sans-serif;
    letter-spacing: 0.05em;
}

/* --- 右側：CTAボックス --- */
.mst-contact-box {
    flex: 0 0 450px; /* 幅固定 */
    border: 1px solid #333;
    background: rgba(255,255,255,0.02); /* ほんの少し明るく */
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.mst-contact-box-msg {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* リッチなCTAボタン */
.mst-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px; /* 横幅制限 */
    padding: 25px 20px; /* 文字が多くても大丈夫なように上下余白確保 */
    background-color: var(--accent, #00d2ff);
    color: #000;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1.4; /* 複数行になっても読みやすく */
    text-align: center;
    position: relative;
}

.mst-contact-btn:hover {
    background-color: #fff;
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.3);
}

.mst-contact-btn::after {
    content: "→";
    display: inline-block;
    margin-left: 10px;
    transition: transform 0.3s;
}
.mst-contact-btn:hover::after {
    transform: translateX(5px);
}

/* スマホ対応 */
@media (max-width: 900px) {
    .mst-contact-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    .mst-contact-box {
        flex: auto;
        width: 100%;
        padding: 40px 20px;
    }
    .mst-contact-heading {
        font-size: 2rem;
    }
}
/* 全セクション共通設定: パターン表示のために必要 */
.mst-section {
    position: relative;
    z-index: 1;
}

/* パターンオーバーレイ */
.mst-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1; /* コンテンツの下に敷く */
    opacity: 0.15; /* 薄く表示 */
}