:root {
    --mws-bg: #ffffff;
    --mws-text: #0a0a0a;
    --mws-muted: #767676;
    --mws-soft: #f4f4f1;
    --mws-line: #e4e4df;
    --mws-accent: #0a0a0a;
    --mws-dark: #0a0a0a;
    --mws-container: 1240px;
    --mws-radius: 28px;
    --mws-shadow: 0 28px 80px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--mws-text);
    background: var(--mws-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.78;
    letter-spacing: .02em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; transition: color .24s ease, background .24s ease, border-color .24s ease, opacity .24s ease, transform .24s ease; }
img { display: block; max-width: 100%; height: auto; }
p { color: var(--mws-muted); }
.container { width: min(var(--mws-container), calc(100% - 48px)); margin-inline: auto; }
.section { padding: clamp(90px, 12vw, 170px) 0; }
.section-label {
    margin: 0 0 24px;
    color: var(--mws-text);
    font-size: .74rem;
    font-weight: 950;
    letter-spacing: .22em;
    line-height: 1.2;
    text-transform: uppercase;
}
h1, h2, h3 { margin: 0; line-height: .98; letter-spacing: -.075em; }
h1 { font-size: clamp(4.5rem, 11.8vw, 11rem); font-weight: 950; }
h2 { font-size: clamp(3.1rem, 8vw, 8rem); font-weight: 950; }
h3 { font-size: clamp(1.45rem, 2.4vw, 2.35rem); font-weight: 900; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 26px;
    border: 1px solid var(--mws-text);
    border-radius: 999px;
    background: var(--mws-text);
    color: #fff;
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .16em;
    line-height: 1;
    text-transform: uppercase;
}
.button:hover, .button:focus { transform: translateY(-2px); background: #fff; color: var(--mws-text); }
.button--ghost { background: #fff; color: var(--mws-text); }
.button--ghost:hover, .button--ghost:focus { background: var(--mws-text); color: #fff; }
.button--light { background: #fff; color: var(--mws-text); border-color: #fff; }
.button--light:hover, .button--light:focus { background: transparent; color: #fff; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link:focus {
    z-index: 1000;
    top: 12px; left: 12px;
    width: auto; height: auto;
    padding: .75rem 1rem;
    clip: auto;
    background: var(--mws-text);
    color: #fff;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(42px);
    transition: opacity .86s cubic-bezier(.22,1,.36,1) var(--reveal-delay,0ms), transform .86s cubic-bezier(.22,1,.36,1) var(--reveal-delay,0ms);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

.site-header {
    position: sticky;
    z-index: 90;
    top: 0;
    border-bottom: 1px solid rgba(10,10,10,.08);
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(18px);
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled { background: rgba(255,255,255,.94); border-bottom-color: var(--mws-line); box-shadow: 0 12px 36px rgba(0,0,0,.045); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 30px; }
.site-branding { display: flex; align-items: center; gap: 12px; min-width: 0; }
.site-branding__text { display: grid; gap: 2px; }
.site-branding__name, .site-title { font-size: 1rem; font-weight: 950; letter-spacing: -.04em; line-height: 1.1; }
.site-branding__tagline, .site-description { margin: 0; color: var(--mws-muted); font-size: .68rem; font-weight: 700; line-height: 1.3; }
.custom-logo { max-height: 44px; width: auto; }
.primary-menu, .footer-menu { display: flex; align-items: center; gap: 24px; padding: 0; margin: 0; list-style: none; }
.primary-menu a { color: var(--mws-text); font-size: .72rem; font-weight: 950; letter-spacing: .18em; text-transform: uppercase; }
.primary-menu a:hover, .primary-menu a:focus { opacity: .55; }
.primary-menu > li:last-child > a { padding: .62rem 1rem; border: 1px solid var(--mws-text); border-radius: 999px; }
.primary-menu > li:last-child > a:hover, .primary-menu > li:last-child > a:focus { background: var(--mws-text); color: #fff; opacity: 1; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--mws-line); border-radius: 999px; background: #fff; }
.menu-toggle__line,
.menu-toggle__line::before,
.menu-toggle__line::after { display: block; width: 18px; height: 2px; margin: auto; background: var(--mws-text); border-radius: 999px; content: ""; transition: transform .24s ease; }
.menu-toggle__line::before { transform: translateY(-7px); }
.menu-toggle__line::after { transform: translateY(5px); }

.hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100svh - 78px);
    display: grid;
    align-items: center;
    padding: clamp(90px, 10vw, 130px) 0 108px;
    background: #fff;
}
.hero::before {
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, var(--mws-soft));
    content: "";
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .94fr) minmax(330px, .56fr); gap: clamp(48px, 8vw, 104px); align-items: center; }
.hero__copy { max-width: 940px; }
.hero__eyebrow { margin: 0 0 26px; color: var(--mws-text); font-size: .78rem; font-weight: 950; letter-spacing: .22em; text-transform: uppercase; }
.hero__text { max-width: 560px; margin: 30px 0 0; color: #4d4d4d; font-size: clamp(1rem, 1.3vw, 1.16rem); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__stage { position: relative; min-height: 520px; }
.visual-card { position: absolute; border: 1px solid #111; background: #fff; box-shadow: 0 26px 70px rgba(0,0,0,.08); transition: transform .55s cubic-bezier(.22,1,.36,1); }
.visual-card span { display: block; color: #737373; font-size: .72rem; font-weight: 950; letter-spacing: .18em; text-transform: uppercase; }
.visual-card strong { display: block; color: #0a0a0a; font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 950; letter-spacing: -.05em; line-height: 1; }
.visual-card--large { inset: 22px 0 auto auto; width: min(100%, 400px); min-height: 360px; padding: 28px; }
.visual-card--large span { margin-bottom: 100px; }
.visual-card--large strong { margin-bottom: 32px; }
.visual-card--large i { display: block; height: 18px; margin-top: 13px; border-radius: 999px; background: #111; opacity: .13; }
.visual-card--large i:nth-of-type(2) { width: 74%; }
.visual-card--large i:nth-of-type(3) { width: 48%; }
.visual-card--small { left: 14px; bottom: 68px; width: 210px; padding: 25px; }
.visual-card--small span { margin-bottom: 66px; }
.visual-card--dark { right: 42px; bottom: 10px; width: 230px; padding: 25px; background: #0a0a0a; color: #fff; }
.visual-card--dark span { margin-bottom: 62px; color: rgba(255,255,255,.52); }
.visual-card--dark strong { color: #fff; }
.hero__stage:hover .visual-card--large { transform: translate(-8px, -10px) rotate(-1deg); }
.hero__stage:hover .visual-card--small { transform: translate(8px, -12px) rotate(1deg); }
.hero__stage:hover .visual-card--dark { transform: translate(4px, 10px) rotate(-1deg); }
.hero__marquee { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; overflow: hidden; border-top: 1px solid #111; border-bottom: 1px solid #111; background: #0a0a0a; color: #fff; white-space: nowrap; }
.hero__marquee div { display: inline-flex; gap: 42px; min-width: 200%; padding: 12px 0; animation: marquee 24s linear infinite; }
.hero__marquee span { font-size: .76rem; font-weight: 950; letter-spacing: .18em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.scroll-link { position: absolute; z-index: 2; right: 30px; bottom: 74px; color: var(--mws-muted); font-size: .68rem; font-weight: 950; letter-spacing: .24em; writing-mode: vertical-rl; }
.scroll-link:hover { color: var(--mws-text); }

.split-section { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, .6fr); gap: clamp(42px, 8vw, 110px); align-items: start; }
.lead-block { display: grid; gap: 18px; padding-top: 18px; }
.lead-block p { margin: 0; color: #2b2b2b; font-size: clamp(1.08rem, 1.55vw, 1.28rem); font-weight: 700; }

.service { background: var(--mws-soft); }
.section-head { margin-bottom: clamp(42px, 6vw, 72px); }
.section-head--split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, .45fr); gap: 38px; align-items: end; }
.section-head--split > p { margin: 0; color: #404040; font-weight: 650; }
.service-list { display: grid; border-top: 1px solid #111; }
.service-item { position: relative; display: grid; grid-template-columns: 90px minmax(180px, .5fr) minmax(190px, .55fr) minmax(260px, .7fr); gap: 28px; align-items: center; min-height: 150px; padding: 32px 0; border-bottom: 1px solid #111; transition: padding-left .28s ease, background .28s ease; }
.service-item:hover { padding-left: 24px; background: rgba(255,255,255,.58); }
.service-item__num, .service-item__en { color: #777; font-size: .75rem; font-weight: 950; letter-spacing: .18em; text-transform: uppercase; }
.service-item h3 { font-size: clamp(1.8rem, 3vw, 3.2rem); }
.service-item p:last-child { margin: 0; color: #3d3d3d; font-weight: 650; }

.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.work-card { display: grid; gap: 18px; }
.work-card__image { display: grid; place-items: center; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid #111; background: var(--mws-soft); }
.work-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.22,1,.36,1); }
.work-card:hover .work-card__image img { transform: scale(1.045); }
.work-card__image--placeholder span, .work-card__image span { color: #111; font-size: clamp(1.6rem, 3vw, 3.2rem); font-weight: 950; letter-spacing: -.06em; line-height: 1; text-align: center; }
.work-card:nth-child(2) .work-card__image { background: #0a0a0a; }
.work-card:nth-child(2) .work-card__image span { color: #fff; }
.work-card__body p { margin: 0 0 6px; color: #777; font-size: .72rem; font-weight: 950; letter-spacing: .18em; text-transform: uppercase; }
.work-card__body h3 { font-size: clamp(1.45rem, 2vw, 2.05rem); }
.work-card__body h3 a:hover { opacity: .58; }

.plan { background: #fff; border-top: 1px solid #111; border-bottom: 1px solid #111; }
.plan-table { border-top: 1px solid #111; }
.plan-table div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 24px; padding: 28px 0; border-bottom: 1px solid #111; }
.plan-table span { font-size: clamp(1.25rem, 2vw, 1.8rem); font-weight: 900; letter-spacing: -.04em; }
.plan-table strong { font-size: clamp(2rem, 4.4vw, 4.4rem); line-height: 1; letter-spacing: -.08em; }

.flow { background: var(--mws-soft); }
.flow-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0; margin: 0; border-top: 1px solid #111; border-left: 1px solid #111; list-style: none; }
.flow-list li { min-height: 190px; padding: 24px; border-right: 1px solid #111; border-bottom: 1px solid #111; font-size: clamp(1.35rem, 2.2vw, 2rem); font-weight: 950; letter-spacing: -.06em; }
.flow-list span { display: block; margin-bottom: 72px; color: #777; font-size: .72rem; letter-spacing: .18em; }

.contact-section { background: #0a0a0a; color: #fff; text-align: center; }
.contact-section .section-label { color: #fff; }
.contact-section__inner { max-width: 980px; }
.contact-section h2 { margin-bottom: 36px; color: #fff; }

.site-footer { background: #0a0a0a; color: #fff; border-top: 1px solid rgba(255,255,255,.12); }
.footer-cta { display: none; }
.footer-widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 54px 0 22px; }
.footer-widget__title { margin-top: 0; color: #fff; font-size: 1.05rem; }
.site-footer__bottom { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; padding: 32px 0; }
.site-footer__brand { display: grid; gap: 2px; }
.site-footer__brand span, .copyright, .footer-menu a { color: rgba(255,255,255,.62); font-size: .84rem; }
.footer-menu a:hover, .footer-menu a:focus { color: #fff; }

.page-main, .single-main { background: linear-gradient(180deg, var(--mws-soft) 0, #fff 260px); }
.archive-main, .search-main { background: #fff; }
.entry, .no-results, .post-card { padding: clamp(28px, 5vw, 46px); border: 1px solid var(--mws-line); border-radius: 0; background: #fff; box-shadow: 0 18px 60px rgba(0,0,0,.04); }
.entry-header { margin-bottom: 28px; }
.entry-title { font-size: clamp(2.2rem, 5vw, 4.6rem); }
.entry-meta, .post-card__meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--mws-muted); font-size: .88rem; font-weight: 700; margin-bottom: 10px; }
.entry-content { color: #1f2937; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin: 2em 0 .6em; line-height: 1.35; letter-spacing: -.03em; }
.entry-content h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
.entry-content h3 { font-size: 1.35rem; }
.entry-content a { color: var(--mws-text); text-decoration: underline; text-underline-offset: .18em; }
.entry-content blockquote { margin: 2rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--mws-text); background: var(--mws-soft); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: .8rem; border: 1px solid var(--mws-line); }
.entry-thumbnail { display: block; overflow: hidden; margin-bottom: 32px; background: var(--mws-soft); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-card__thumbnail { display: block; overflow: hidden; margin: -24px -24px 22px; background: var(--mws-soft); }
.post-card__thumbnail img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card__title { margin-bottom: 12px; font-size: 1.4rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 34px; }
.nav-links a { color: var(--mws-text); font-weight: 800; }
.search-form { display: flex; gap: 10px; }
.search-field { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--mws-line); border-radius: 999px; }
.search-submit { min-height: 48px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--mws-text); color: #fff; font-weight: 800; }
.comments-area { margin-top: 40px; }

@media (max-width: 1040px) {
    h1 { font-size: clamp(4rem, 15vw, 8rem); }
    .hero__inner, .split-section, .section-head--split { grid-template-columns: 1fr; }
    .hero { min-height: auto; }
    .hero__stage { min-height: 420px; max-width: 540px; }
    .service-item { grid-template-columns: 70px 1fr; }
    .service-item__en { grid-column: 2; }
    .service-item h3, .service-item p:last-child { grid-column: 2; }
    .work-grid, .post-grid { grid-template-columns: 1fr; }
    .flow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer__bottom { grid-template-columns: 1fr; }
    .footer-widgets { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .container { width: min(100% - 32px, var(--mws-container)); }
    .site-header__inner { min-height: 66px; }
    .site-branding__tagline, .site-description { display: none; }
    .menu-toggle { display: inline-grid; place-items: center; }
    .primary-navigation {
        position: fixed;
        inset: 66px 14px auto 14px;
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity .24s ease, transform .24s ease, visibility .24s ease;
    }
    .primary-navigation.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
    .primary-menu { display: grid; gap: 0; padding: 12px; border: 1px solid var(--mws-line); background: rgba(255,255,255,.96); box-shadow: var(--mws-shadow); backdrop-filter: blur(18px); }
    .primary-menu a { display: block; padding: 14px; }
    .primary-menu > li:last-child > a { margin-top: 8px; text-align: center; }
    .section { padding: 76px 0; }
    .hero { padding: 66px 0 92px; }
    .hero__stage { min-height: 320px; }
    .visual-card--large { width: 86%; min-height: 245px; padding: 20px; }
    .visual-card--large span { margin-bottom: 56px; }
    .visual-card--small { left: 0; bottom: 54px; width: 168px; padding: 18px; }
    .visual-card--small span { margin-bottom: 40px; }
    .visual-card--dark { right: 0; bottom: 0; width: 172px; padding: 18px; }
    .visual-card--dark span { margin-bottom: 36px; }
    .scroll-link { display: none; }
    .service-item { grid-template-columns: 1fr; gap: 12px; min-height: auto; padding: 28px 0; }
    .service-item__en, .service-item h3, .service-item p:last-child { grid-column: auto; }
    .service-item:hover { padding-left: 0; }
    .work-card__image { aspect-ratio: 16 / 10; }
    .plan-table div { grid-template-columns: 1fr; gap: 12px; }
    .flow-list { grid-template-columns: 1fr; }
    .flow-list li { min-height: 128px; }
    .flow-list span { margin-bottom: 34px; }
    .footer-menu { flex-wrap: wrap; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
}
