/* ============================================================
   MY VOXELS INC. — corporate site v2.2 (2026-09)
   Direction A: scale contrast + whitespace. White ground, thin rules,
   logo yellow as a small accent. Type: Murecho, medium weights.
   ============================================================ */

:root {
    --bg: #FFFFFF;
    --bg-alt: #F7F7F5;
    --line: #E6E6E2;
    --line-2: #D4D4CF;
    --ink: #1A1A1A;
    --ink-2: #3D3D3B;
    --mute: #6B6B68;
    --accent: #D0BA00;
    --accent-soft: #FBF6CC;

    --font: 'Murecho', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;

    --mx: 1160px;
    --gx: clamp(20px, 5vw, 56px);
    --sec: clamp(72px, 10vw, 140px);
    --nav-h: 64px;
    --r: 4px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    font-size: 15.5px;
    line-height: 1.9;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
/* 日本語の改行：文節の途中で切らない。
   keep-all は日本語を<wbr>の位置でしか折り返さなくする（全ブラウザで同じ結果になる）。
   <wbr>が無い長い文字列だけは、はみ出さないよう overflow-wrap で最後の手段として折り返す。
   見出しは行の長さをそろえ、本文は最後の行に1〜2文字だけ残らないようにする */
body { line-break: strict; word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, .hero__title, .about__big, .index .t { text-wrap: balance; }
p, dd, td, li { text-wrap: pretty; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; font-weight: 600; }
.skip:focus { left: 8px; }

.eyebrow {
    font-weight: 600;
    font-size: 11.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mute);
    line-height: 1.5;
}
.wrap { max-width: var(--mx); margin-inline: auto; padding-inline: var(--gx); }

/* ---------- Nav ---------- */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    height: var(--nav-h);
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s;
}
.nav.is-solid, .nav.is-open { border-bottom-color: var(--line); }
.nav__in {
    max-width: var(--mx); margin-inline: auto; padding-inline: var(--gx);
    height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 13px; letter-spacing: .12em; }
.brand img { width: 24px; height: 24px; }
.nav__toggle { position: relative; width: 44px; height: 44px; margin-right: -10px; }
.nav__toggle span { position: absolute; left: 11px; top: 21px; width: 22px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.nav__toggle span:first-child { transform: translateY(-4px); }
.nav__toggle span:last-child { transform: translateY(4px); }
.nav.is-open .nav__toggle span:first-child { transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: rotate(-45deg); }
.nav__menu { display: none; }
.nav.is-open .nav__menu {
    display: flex; flex-direction: column;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gx) 20px;
}
.nav__menu a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nav__menu a small { font-size: 12px; color: var(--mute); margin-left: 10px; }
@media (min-width: 900px) {
    .nav__toggle { display: none; }
    .nav__menu { display: flex; align-items: center; gap: 30px; }
    .nav__menu a { padding: 4px 0; font-size: 13px; letter-spacing: .04em; border: 0; color: var(--ink-2); transition: color .2s; position: relative; }
    .nav__menu a small { display: none; }
    .nav__menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
    .nav__menu a:hover { color: var(--ink); }
    .nav__menu a:hover::after { transform: scaleX(1); }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .55em;
    padding: .85em 1.35em; border: 1px solid var(--ink); border-radius: var(--r);
    font-weight: 600; font-size: 14px; line-height: 1; text-decoration: none;
    color: var(--ink); background: var(--bg);
    transition: background .2s, color .2s;
}
.btn:hover { background: var(--bg-alt); }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: var(--ink-2); }
.btn svg { width: 15px; height: 15px; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 88px)); padding-bottom: clamp(40px, 5vw, 64px); }
.hero__title {
    font-size: clamp(32px, 6vw, 80px); font-weight: 500; line-height: 1.22; letter-spacing: .01em;
    margin-top: 20px;
}
.hl { background-image: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%); }
.hero__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 28px; align-items: start; }
@media (min-width: 900px) { .hero__row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; } }
.hero__lead { max-width: 28em; font-size: clamp(15px, 1.2vw, 16.5px); line-height: 2; color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__fig { margin: 0; display: flex; justify-content: center; }
@media (min-width: 900px) { .hero__fig { justify-content: flex-end; margin-top: clamp(-96px, -6vw, -40px); } }
.hero__fig canvas { display: block; width: 100%; max-width: 440px; height: auto;
    /* 完成したロゴは下の正方形に収まる。上の30%は、テトリスのブロックが入ってくる空き。同じ分だけ上へ引き上げて、ほかの配置は動かさない */
    aspect-ratio: 1 / 1.3; margin-top: -30%; pointer-events: none;
    /* 飛んでくるボクセルが枠で硬く切れないよう、縁だけ薄くぼかす（組み上がったロゴは縁の内側に収まる） */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 94%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 94%, transparent);
    mask-composite: intersect; }
@media (max-width: 899px) { .hero__fig canvas { max-width: 300px; margin-top: -40px; } }

.index { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--ink); margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 640px) { .index { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.index a { display: block; padding: 18px 16px 18px 0; text-decoration: none; border-bottom: 1px solid var(--line); transition: background .2s; }
@media (min-width: 640px) { .index a { border-bottom: 0; border-right: 1px solid var(--line); padding: 20px 20px 10px 0; } .index a + a { padding-left: 20px; } .index a:last-child { border-right: 0; } }
.index a:hover { background: var(--bg-alt); }
.index .n { font-size: 11.5px; letter-spacing: .12em; color: var(--mute); display: flex; align-items: center; gap: 8px; }
.index .n::before { content: ""; width: 8px; height: 8px; background: var(--accent); }
.index .t { font-size: 18px; font-weight: 600; margin-top: 8px; line-height: 1.5; }
.index .b { font-size: 14px; font-weight: 500; margin-top: 4px; line-height: 1.5; }
.index .s { font-size: 12.5px; color: var(--mute); margin-top: 2px; line-height: 1.7; }

/* ---------- Sections ---------- */
.sec { padding-block: var(--sec); border-top: 1px solid var(--line); }
.sec--alt { background: var(--bg-alt); }
.sec__in {
    max-width: var(--mx); margin-inline: auto; padding-inline: var(--gx);
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px;
}
@media (min-width: 900px) { .sec__in { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 48px; } }
.sec__label { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
@media (min-width: 900px) { .sec__label { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; flex-direction: column; gap: 4px; } }
.sec__label .eyebrow { color: var(--ink); }
.sec__label .eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--accent); margin-right: 10px; vertical-align: 1px; }
.sec__label small { font-size: 12.5px; color: var(--mute); }
.sec__title { font-size: clamp(26px, 3.6vw, 46px); font-weight: 500; line-height: 1.3; letter-spacing: .005em; text-wrap: balance; }
.sec__lead { margin-top: 20px; max-width: 34em; font-size: clamp(15px, 1.15vw, 16px); line-height: 2; color: var(--ink-2); }

/* ---------- About ---------- */
.about__big { font-size: clamp(28px, 4.2vw, 56px); font-weight: 500; line-height: 1.3; letter-spacing: .005em; }
.about__tag { margin-top: 14px; font-size: 13.5px; font-weight: 600; letter-spacing: .04em; color: var(--mute); }
.about__cols { margin-top: 28px; font-size: 15px; line-height: 2; color: var(--ink-2); max-width: 36em; }
.about__cols p + p { margin-top: 1em; }
@media (max-width: 719px) { .about__cols { columns: 1; } }

/* ---------- Serendipity (ink band) ---------- */
.sec--ink { background: var(--ink); color: #F4F4F1; border-top: 0; }
.sec--ink .sec__label .eyebrow { color: var(--accent); }
.sec--ink .sec__label .eyebrow::before { background: var(--accent); }
.sec--ink .sec__label small { color: #A3A39E; }
.story__q { font-size: clamp(22px, 3vw, 38px); font-weight: 500; line-height: 1.45; letter-spacing: .005em; }
.story__cols { margin-top: 32px; font-size: 15px; line-height: 2; color: #C9C9C4; columns: 2; column-gap: 40px; max-width: 60em; }
.story__cols p + p { margin-top: 1em; }
@media (max-width: 719px) { .story__cols { columns: 1; } .story__q br { display: none; } }
.sec--ink :focus-visible { outline-color: var(--accent); }

.defs { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.defs > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .defs > div { grid-template-columns: 120px minmax(0, 1fr); } }
.defs dt { font-weight: 600; font-size: 11.5px; letter-spacing: .12em; color: var(--mute); padding-top: .55em; }
.defs dd { font-size: 16px; font-weight: 500; max-width: 32em; line-height: 1.8; }

/* ---------- Services ---------- */
.svc { margin-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--ink); }
.svc__row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px 16px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
@media (min-width: 720px) { .svc__row { grid-template-columns: 56px minmax(0, 2fr) minmax(0, 3fr); gap: 24px; padding: 30px 0; } }
.svc__n { font-size: 12px; letter-spacing: .12em; color: var(--mute); }
.svc__title { font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; line-height: 1.4; }
.svc__title small { display: block; font-size: 12.5px; font-weight: 400; color: var(--mute); letter-spacing: .04em; margin-top: 2px; }
.svc__body { grid-column: 2; }
@media (min-width: 720px) { .svc__body { grid-column: auto; } }
.svc__desc { font-size: 14.5px; line-height: 1.95; color: var(--ink-2); }
.svc__tags { margin-top: 10px; font-size: 12.5px; color: var(--mute); }
.svc__more { display: inline-flex; align-items: center; gap: .45em; margin-top: 14px; font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--ink); }
.svc__more svg { width: 14px; height: 14px; }

/* ---------- Works ---------- */
.works { list-style: none; margin-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--ink); }
.work { border-bottom: 1px solid var(--line); }
.work__row {
    display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 6px 16px; align-items: center;
    padding: 18px 0; text-decoration: none; color: inherit; transition: background .2s;
}
a.work__row:hover { background: var(--bg-alt); }
.work__thumb { grid-row: 1 / span 3; aspect-ratio: 1; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-alt); }
.work__thumb img, .work__thumb svg { width: 100%; height: 100%; object-fit: cover; }
.work__title { display: block; font-size: 17px; font-weight: 500; line-height: 1.5; }
.work__sub { display: block; margin-top: 2px; font-size: 13.5px; color: var(--mute); line-height: 1.6; }
.work__meta { grid-column: 2; font-size: 12px; letter-spacing: .04em; color: var(--mute); }
.work__status { grid-column: 2; font-size: 13px; color: var(--mute); }
.work__arrow { display: none; color: var(--mute); }
@media (min-width: 900px) {
    .work__row { grid-template-columns: 60px minmax(0, 2fr) minmax(0, .9fr) minmax(0, .8fr) 20px; gap: 24px; padding: 18px 12px; }
    .work__thumb { grid-row: auto; }
    .work__meta, .work__status { grid-column: auto; }
    .work__status { text-align: right; }
    .work__arrow { display: block; text-align: right; }
}
.works__more { display: inline-flex; align-items: center; gap: .45em; margin-top: 24px; font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--ink); }
.works__more svg { width: 14px; height: 14px; }

/* ---------- News ---------- */
.news { list-style: none; margin-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--ink); }
.news li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .news li { grid-template-columns: 110px 110px minmax(0, 1fr); align-items: baseline; } }
.news time { font-weight: 500; font-size: 13.5px; letter-spacing: .02em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.news__tag { font-size: 12px; color: var(--mute); border: 1px solid var(--line-2); border-radius: var(--r); padding: 1px 8px; justify-self: start; line-height: 1.7; }
.news p { font-size: 15px; font-weight: 500; }

/* ---------- Company ---------- */
.info { width: 100%; border-collapse: collapse; margin-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--ink); }
.info th, .info td { padding: 15px 0; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; font-size: 15px; line-height: 1.8; }
.info th { width: 8em; font-weight: 500; font-size: 13.5px; color: var(--mute); padding-right: 16px; }
.info .en { display: block; font-size: 12.5px; letter-spacing: .04em; color: var(--mute); }

/* ---------- Contact form ---------- */
.form { margin-top: 32px; max-width: 44em; }
.form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 20px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form__field--full { grid-column: 1 / -1; } }
.form__field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form__field .req { font-size: 10.5px; font-weight: 600; color: var(--accent-ink, #8A7A00); margin-left: 6px; letter-spacing: .04em; }
.form__field input, .form__field select, .form__field textarea {
    width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--bg);
    border: 1px solid var(--line-2); border-radius: var(--r); padding: 11px 12px; line-height: 1.5;
    transition: border-color .2s, box-shadow .2s;
}
.form__field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.form__field textarea { resize: vertical; min-height: 150px; }
.form__field input:focus, .form__field select:focus, .form__field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.form__field input:user-invalid, .form__field textarea:user-invalid { border-color: #B23B3B; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.form__note { font-size: 12.5px; color: var(--mute); }
.form__status { margin-top: 14px; font-size: 14px; font-weight: 500; min-height: 1.5em; }
.form__status.is-ok { color: #1F6B3A; }
.form__status.is-ng { color: #B23B3B; }
.form.is-sent .form__grid, .form.is-sent .form__foot { display: none; }
.form.is-sent .form__status { font-size: 16px; padding: 22px 0; border-top: 1px solid var(--ink); }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- Contact ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); padding: 8px 14px; font-weight: 500; font-size: 13.5px; line-height: 1.4; text-decoration: none; transition: border-color .2s; }
.chip:hover { border-color: var(--ink); }
.mail {
    display: inline-block; margin-top: 32px; padding-bottom: 2px;
    font-weight: 500; font-size: clamp(20px, 3vw, 36px); line-height: 1.3; letter-spacing: -.01em;
    text-decoration: none; word-break: break-all; border-bottom: 2px solid var(--accent);
}
.mail:hover { border-color: var(--ink); }
.contact__note { margin-top: 12px; font-size: 13.5px; color: var(--mute); }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); color: var(--ink-2); transition: border-color .2s, color .2s; }
.social a:hover { border-color: var(--ink); color: var(--ink); }
.social svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 44px 28px; }
.footer__in { max-width: var(--mx); margin-inline: auto; padding-inline: var(--gx); }
.footer__grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: minmax(0, 1fr) auto auto; gap: 48px; align-items: start; } }
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 12.5px; letter-spacing: .12em; }
.footer__brand img { width: 22px; height: 22px; }
.footer__tag { margin-top: 10px; font-size: 13px; color: var(--mute); max-width: 28em; }
.footer__nav { display: grid; gap: 4px; }
.footer__nav .h { font-weight: 600; font-size: 11px; letter-spacing: .14em; color: var(--mute); margin-bottom: 6px; }
.footer__nav a { font-size: 13.5px; color: var(--ink-2); text-decoration: none; }
.footer__nav a:hover { color: var(--ink); text-decoration: underline; }
.footer__copy { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; letter-spacing: .04em; color: var(--mute); }

/* ---------- Founder ---------- */
.founder { margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--ink); display: grid; gap: 12px 32px; }
@media (min-width: 720px) { .founder { grid-template-columns: 200px minmax(0, 1fr); } }
.founder__name { font-size: 20px; font-weight: 500; line-height: 1.4; }
.founder__name small { display: block; font-size: 12.5px; color: var(--mute); font-weight: 400; letter-spacing: .04em; margin-top: 2px; }
.founder__bio { font-size: 15px; line-height: 2; color: var(--ink-2); max-width: 36em; }

/* ---------- Media ---------- */
.media { list-style: none; margin-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--ink); }
.media li { border-bottom: 1px solid var(--line); }
.media a { display: grid; grid-template-columns: 96px minmax(0, 1fr) 20px; gap: 16px; align-items: baseline; padding: 15px 0; text-decoration: none; color: inherit; transition: background .2s; }
@media (min-width: 720px) { .media a { grid-template-columns: 130px minmax(0, 1fr) 20px; padding: 16px 12px; } }
.media a:hover { background: rgba(0, 0, 0, .03); }
.media .k { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.media .v { font-size: 15.5px; font-weight: 500; }
.media .v small { display: block; font-size: 12.5px; color: var(--mute); font-weight: 400; }
@media (min-width: 720px) { .media .v small { display: inline; margin-left: 12px; } }
.media .a { color: var(--mute); text-align: right; }

.index .m { font-size: 12px; color: var(--mute); margin-top: 10px; }
.contact__note a { color: var(--ink); }

/* ---------- Reveal & motion ---------- */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-pending { opacity: 0; transform: translateY(12px); }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .js .reveal.is-pending { opacity: 1; transform: none; }
}
