@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Roboto+Mono:wght@400;700&display=swap');

:root {
    --ma-bg: #F0F2F5;
    --ma-white: #FFFFFF;
    --ma-ink: #111111;
    --ma-blue: #0055FF; /* Tech Blue */
    --ma-border: 1px solid #111111;
    --ma-grid-gap: 1px;
    --ma-font-main: 'Noto Sans JP', sans-serif;
    --ma-font-mono: 'Roboto Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }

body {
    background-color: var(--ma-ink); /* Lines color */
    color: var(--ma-ink);
    font-family: var(--ma-font-main);
    line-height: 1.6;
    font-size: 14px;
    background-image: 
        linear-gradient(var(--ma-white) 1px, transparent 1px),
        linear-gradient(90deg, var(--ma-white) 1px, transparent 1px);
    background-size: 20px 20px;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
img { width: 100%; display: block; object-fit: cover; }
ul { list-style: none; }

.ma-jp-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--ma-bg);
    border-left: var(--ma-border);
    border-right: var(--ma-border);
    min-height: 100vh;
}

/* HEADER */
.ma-jp-head {
    background: var(--ma-white);
    border-bottom: var(--ma-border);
    padding: 0 24px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.ma-jp-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}
.ma-jp-logo img { width: 36px; height: 36px; border: 2px solid var(--ma-ink); }

/* PC Menu */
.ma-jp-pc-nav {
    display: flex;
    height: 100%;
}
.ma-jp-pc-link {
    display: flex;
    align-items: center;
    padding: 0 25px;
    height: 100%;
    border-left: var(--ma-border);
    font-weight: 700;
    font-size: 0.9rem;
    background: var(--ma-white);
}
.ma-jp-pc-link:hover {
    background: var(--ma-blue);
    color: var(--ma-white);
}

/* Mobile Hamburger (Hidden on PC) */
.ma-jp-burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}
.ma-jp-line {
    width: 100%;
    height: 3px;
    background: var(--ma-ink);
    transition: 0.3s;
}

/* Mobile Menu Overlay */
.ma-jp-mob-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--ma-white);
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    border-bottom: var(--ma-border);
}
.ma-jp-mob-menu.active { height: auto; padding-bottom: 20px; border-bottom: 3px solid var(--ma-blue); }
.ma-jp-mob-link {
    display: block;
    padding: 20px;
    border-bottom: 1px solid #eee;
    font-weight: 700;
    font-size: 1.1rem;
}

/* CTA Buttons */
.ma-jp-btn {
    display: inline-block;
    background: var(--ma-blue);
    color: var(--ma-white);
    padding: 15px 40px;
    font-weight: 700;
    font-family: var(--ma-font-mono);
    border: 2px solid var(--ma-ink);
    box-shadow: 4px 4px 0 var(--ma-ink);
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ma-jp-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--ma-ink);
}

/* HERO */
.ma-jp-hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    border-bottom: var(--ma-border);
}
.ma-jp-hero-txt {
    padding: 60px 40px;
    background: var(--ma-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ma-jp-tag {
    font-family: var(--ma-font-mono);
    color: var(--ma-blue);
    border: 1px solid var(--ma-blue);
    padding: 4px 8px;
    font-size: 0.75rem;
    width: fit-content;
    margin-bottom: 20px;
    font-weight: 700;
}
.ma-jp-h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 900;
    margin-bottom: 25px;
    letter-spacing: -0.05em;
}
.ma-jp-p-lg {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #444;
    text-align: justify;
}
.ma-jp-hero-vis {
    background: url('https://images.pexels.com/photos/8386440/pexels-photo-8386440.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') center/cover;
    border-left: var(--ma-border);
    filter: grayscale(100%);
    transition: 0.5s;
}
.ma-jp-hero-vis:hover { filter: grayscale(0%); }

/* SECTIONS */
.ma-jp-sect { border-bottom: var(--ma-border); }
.ma-jp-sect-head {
    padding: 30px 40px;
    background: #F9F9F9;
    border-bottom: var(--ma-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ma-jp-h2 { font-size: 1.8rem; font-weight: 900; }
.ma-jp-num { font-family: var(--ma-font-mono); font-weight: 700; color: var(--ma-blue); font-size: 1.5rem; }

/* GRID SYSTEM (Bento) */
.ma-jp-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px; /* Creates borders via background color */
    background: var(--ma-ink); 
}
.ma-jp-card {
    background: var(--ma-white);
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: 0.3s;
}
.ma-jp-card:hover { background: #E6F0FF; }

.ma-jp-card-img {
    height: 180px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
    filter: grayscale(100%);
    transition: 0.3s;
}
.ma-jp-card:hover .ma-jp-card-img { filter: grayscale(0%); border-color: var(--ma-blue); }

.ma-jp-h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.ma-jp-h3::before { content: ''; width: 10px; height: 10px; background: var(--ma-blue); }
.ma-jp-p-sm { font-size: 0.9rem; color: #555; text-align: justify; line-height: 1.8; }

/* ABOUT BLOCK (Dense Text) */
.ma-jp-story-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1px;
    background: var(--ma-ink);
}
.ma-jp-story-txt { background: var(--ma-white); padding: 50px; }
.ma-jp-story-vis { 
    background: url('https://images.pexels.com/photos/3183150/pexels-photo-3183150.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') center/cover;
    filter: grayscale(100%);
}

/* FORM */
.ma-jp-form-wrap {
    padding: 60px 40px;
    background: #fff;
}
.ma-jp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.ma-jp-label {
    font-family: var(--ma-font-mono);
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 5px;
    display: block;
    color: var(--ma-blue);
}
.ma-jp-inp {
    width: 100%;
    padding: 15px;
    border: 2px solid #111;
    background: #F9F9F9;
    font-family: inherit;
    border-radius: 0; /* Brutalist */
}
.ma-jp-inp:focus { background: #fff; border-color: var(--ma-blue); }

/* FOOTER */
.ma-jp-foot {
    background: var(--ma-ink);
    color: var(--ma-white);
    padding: 60px 40px;
}
.ma-jp-ft-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.ma-jp-ft-head {
    font-family: var(--ma-font-mono);
    color: var(--ma-blue);
    margin-bottom: 20px;
    font-weight: 700;
}
.ma-jp-ft-link {
    display: block;
    color: #ccc;
    margin-bottom: 10px;
    font-size: 0.9rem;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}
.ma-jp-ft-link:hover { color: var(--ma-white); border-color: var(--ma-blue); }

/* MOBILE */
@media (max-width: 768px) {
    .ma-jp-pc-nav { display: none; }
    .ma-jp-burger { display: flex; }
    .ma-jp-hero { grid-template-columns: 1fr; }
    .ma-jp-hero-vis { height: 300px; border-left: none; border-top: var(--ma-border); }
    .ma-jp-grid-3 { grid-template-columns: 1fr; }
    .ma-jp-story-grid { grid-template-columns: 1fr; }
    .ma-jp-story-vis { height: 300px; }
    .ma-jp-form-grid { grid-template-columns: 1fr; }
    .ma-jp-ft-grid { grid-template-columns: 1fr 1fr; }
    .ma-jp-head { padding: 0 20px; }
}