/* YamaStudio official site
   Full-bleed studio layout. Abstract color fields are graphics, not screenshots. */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600&family=Barlow:wght@400;500;600&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

:root {
    --bg: #090909;
    --ink: #f4f3ef;
    --muted: #c4c0b6;
    --text-muted: #c4c0b6;
    --line: rgba(244, 243, 239, 0.16);
    --signal: #e4ff4a;
    --header-h: 72px;
    --border-color: rgba(244, 243, 239, 0.16);
    --bg-secondary: #141414;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Zen Kaku Gothic New", "Barlow", sans-serif;
    font-weight: 400;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; }
::selection { background: var(--signal); color: #141414; }

a { color: inherit; }
a:hover { color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 40;
    background: var(--signal);
    color: #141414;
    padding: 8px 12px;
    text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
    width: min(1280px, calc(100% - 64px));
    margin-inline: auto;
}
#games, #tools, #sites, #studio, #news { scroll-margin-top: 84px; }

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 20;
    height: var(--header-h);
    background: rgba(9, 9, 9, 0.96);
    border-bottom: 1px solid var(--line);
}
body { padding-top: var(--header-h); }
.header-bar {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--ink);
    text-decoration: none;
}
a.wordmark img {
    width: 40px;
    height: 40px;
    flex: none;
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.wordmark:hover { color: var(--ink); opacity: 0.7; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
    text-decoration: none;
    font-family: "Barlow", sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.site-nav a[aria-current="page"] { color: var(--signal); }
.nav-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.nav-toggle-label { display: none; }

.kicker {
    margin: 0 0 12px;
    font-family: "Barlow", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--signal);
}
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; }

.hero {
    min-height: calc(100svh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 0 64px;
    background:
        radial-gradient(880px 460px at 88% 30%, rgba(228, 255, 74, 0.08), transparent 62%),
        radial-gradient(640px 420px at 0% 100%, rgba(70, 78, 58, 0.45), transparent 70%);
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(220px, 380px);
    gap: 48px;
    align-items: end;
}
.hero h1 {
    margin: 0 0 24px;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    font-size: clamp(3.6rem, 18vw, 8.2rem);
    line-height: 0.82;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}
.hero h1 span { color: var(--signal); }
@media (min-width: 900px) {
    .hero h1 { font-size: clamp(5.5rem, 7.4vw, 8.2rem); }
}
.hero-lead {
    margin: 0;
    max-width: 40rem;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.85;
    word-break: auto-phrase;
    line-break: strict;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    background: var(--ink);
    color: #141414;
    text-decoration: none;
    font-weight: 700;
}
.btn:hover { background: var(--signal); color: #141414; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--signal); background: transparent; color: var(--signal); }
.hero-mark { margin: 0; }
.hero-mark img { width: 100%; height: auto; border: 0; background: transparent; }
.hero-mark figcaption {
    margin-top: 10px;
    font-family: "Barlow", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.section-intro { padding: 88px 0 28px; }
.section-intro h2 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1.1;
}
.section-intro p { margin: 12px 0 0; color: var(--muted); max-width: 36rem; }

.poster {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
    align-items: stretch;
    min-height: 0;
    border-top: 1px solid var(--line);
    background: #0c0c0c;
}
.poster-media { min-height: 240px; background: #000; }
.poster-media img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    max-height: 520px;
    object-fit: cover;
    display: block;
}
.poster-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 4vw, 56px);
    max-width: none;
}
.poster h3 {
    margin: 0 0 16px;
    font-family: "Barlow Condensed", "Zen Kaku Gothic New", sans-serif;
    font-weight: 600;
    font-size: clamp(2.7rem, 6vw, 5.4rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
    max-width: 100%;
    text-wrap: balance;
}
.poster-instant h3 {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.2;
    letter-spacing: -0.04em;
}
.poster p { margin: 0; max-width: 38rem; font-size: 1.05rem; line-height: 1.75; color: rgba(244, 243, 239, 0.9); word-break: auto-phrase; line-break: strict; }
.poster p.poster-en {
    margin: -6px 0 16px;
    font-family: "Barlow", "Zen Kaku Gothic New", sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.poster-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; }
.other-games { padding: 36px 0 8px; }
.other-games h3 {
    margin: 0 0 14px;
    font-family: "Barlow Condensed", "Zen Kaku Gothic New", sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}
.other-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    max-width: 640px;
    padding: 12px;
    border: 1px solid var(--line);
    background: #101010;
    text-decoration: none;
    color: inherit;
}
.other-card img {
    width: 160px;
    height: 90px;
    object-fit: cover;
    background: #000;
}
.other-card strong { display: block; font-size: 1.05rem; }
.other-line { display: block; margin-top: 4px; color: var(--muted); font-size: 0.92rem; }
.other-link { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--signal); font-size: 0.92rem; }
.after-poster { padding-top: 36px; }
.poster-links a { font-weight: 700; text-underline-offset: 0.18em; }

.band { padding-bottom: 72px; }
.tool-grid, .site-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.tool-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid var(--line);
    background: #101010;
}
.tool-card img, .tool-mark {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #070707;
}
.tool-mark {
    display: grid;
    place-items: center;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 4.5rem;
    letter-spacing: 0.08em;
    color: rgba(244, 243, 239, 0.86);
}
.tool-mark-sleep {
    background:
        repeating-linear-gradient(-45deg, transparent, transparent 14px, rgba(228, 255, 74, 0.14) 14px, rgba(228, 255, 74, 0.14) 15px),
        linear-gradient(145deg, #31441c, #12160e 60%);
}
.tool-body { padding: 20px 22px 24px; }
.tool-body h3 { margin: 0 0 8px; font-size: 1.45rem; line-height: 1.35; word-break: auto-phrase; line-break: strict; }
.tool-en { display: block; margin-top: 4px; font-size: 0.72em; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.tool-body p { margin: 0; color: var(--muted); }
.tool-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; }
.tool-links a { font-weight: 700; text-underline-offset: 0.18em; }

.site-list { gap: 0 40px; list-style: none; margin: 0; padding: 0; }
.site-list li { border-top: 1px solid var(--line); padding: 22px 0 20px; }
.site-list a { font-size: 1.2rem; font-weight: 700; text-decoration: none; }
.site-list p, .studio-grid p { margin: 8px 0 0; color: var(--muted); word-break: auto-phrase; line-break: strict; }
.nowrap { white-space: nowrap; }

.studio-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}
.studio-grid img { width: 220px; border: 0; background: transparent; }
.studio-grid h2 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3.2rem); }
.studio-grid p { margin: 0 0 12px; color: var(--muted); }
.studio-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.studio-links a { font-weight: 700; }

.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 24px;
    align-items: baseline;
    border-top: 1px solid var(--line);
    padding: 22px 0;
}
.news-list time {
    font-family: "Barlow", sans-serif;
    color: var(--muted);
    letter-spacing: 0.04em;
}
.news-list a { font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.more-link { display: inline-block; margin-top: 8px; font-weight: 700; }

.site-footer { border-top: 1px solid var(--line); margin-top: 24px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.4fr 0.8fr;
    gap: 32px;
    padding: 56px 0 28px;
}
.footer-grid p { margin: 0; color: var(--muted); }
.footer-label {
    margin: 0 0 10px;
    font-family: "Barlow", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--signal);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 0; }
.footer-grid a { display: inline-block; padding: 4px 0; text-decoration: none; }
.footer-base {
    border-top: 1px solid var(--line);
    padding: 18px 0 36px;
    color: var(--muted);
    font-size: 0.88rem;
}
.footer-base p { margin: 0 0 6px; }

.page-container {
    width: min(760px, calc(100% - 64px));
    margin: 48px auto 96px;
}
.page-container h1 {
    margin: 0 0 28px;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.08;
}
.page-container h2 { margin: 2.4rem 0 0.8rem; font-size: 1.35rem; }
.page-container h3 { margin: 1.6rem 0 0.5rem; font-size: 1.1rem; }
.page-container p, .page-container li { line-height: 1.85; }
.page-container ul, .page-container ol { padding-left: 1.2rem; }
.page-container a { text-underline-offset: 0.18em; }
.breadcrumb { margin: 0 0 18px; color: var(--muted); font-size: 0.88rem; }
.breadcrumb a { color: inherit; }
.profile-section {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.profile-img img { width: 160px; border: 0; background: transparent; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
    display: inline-block;
    border: 1px solid var(--line);
    padding: 6px 10px;
    font-size: 0.88rem;
}
.project-list { list-style: none; margin: 0; padding: 0; }
.page-container .project-list { padding-left: 0; }
.project-list li { padding: 16px 0; border-top: 1px solid var(--line); }
.project-desc { margin: 6px 0 0; color: var(--muted); }
.form-wrapper iframe { width: 100%; min-height: 720px; border: 1px solid var(--line); background: #fff; }
.contact-fallback {
    margin-top: 24px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    background: #141414;
}

@media (max-width: 900px) {
    .wrap, .page-container { width: min(1280px, calc(100% - 32px)); }
    .hero-grid, .tool-grid, .site-list, .studio-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-grid, .studio-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
    .poster { grid-template-columns: 1fr; }
    .poster-media img { height: auto; min-height: 0; max-height: 420px; aspect-ratio: 16 / 9; }
}
@media (max-width: 720px) {
    .nav-toggle-label {
        display: grid;
        width: 44px;
        height: 44px;
        place-content: center;
        gap: 5px;
        cursor: pointer;
    }
    .nav-toggle-label span:not(.sr-only) {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--ink);
        transition: transform 0.15s ease, opacity 0.15s ease;
    }
    .nav-toggle:checked + .nav-toggle-label span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle:checked + .nav-toggle-label span:nth-child(3) { opacity: 0; }
    .nav-toggle:checked + .nav-toggle-label span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
    .site-nav {
        display: none;
        position: fixed;
        inset: var(--header-h) 0 0 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 12px 24px 32px;
        background: #090909;
        overflow: auto;
    }
    .nav-toggle:checked ~ .site-nav { display: flex; }
    .site-nav a { font-size: 1.7rem; padding: 12px 0; }
    body:has(.nav-toggle:checked) { overflow: hidden; }
    .hero { min-height: auto; align-items: flex-start; padding-top: 28px; }
    .hero-mark img { width: min(200px, 54vw); }
    .tool-grid, .site-list, .footer-grid, .profile-section, .news-list li { grid-template-columns: 1fr; }
    .news-list li { gap: 4px; }
    .poster-media img { max-height: 240px; }
    .tool-card img, .tool-mark { height: 180px; }
    .other-card { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
    .other-card img { width: 112px; height: 63px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .nav-toggle-label span:not(.sr-only) { transition: none; }
}
