/* The public brand pages share a layout, with separate identities and accents. */
.nk-brand-layout {
    --ink: #142737;
    --secondary: #465660;
    --paper: #fffdf9;
    --surface: #fff;
    --tint: #fff3e4;
    --accent: #a53a0f;
    --on-accent: #fff;
    --focus: #186ea1;
    --stroke: #dfd8cd;
    --gutter: clamp(1rem, 3.2vw, 2.75rem);
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 400 1rem/1.65 "Segoe UI", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
    color-scheme: light;
}
.nk-games {
    --paper: #f4f5f9;
    --tint: #e9f5e7;
    --accent: #136342;
    --stroke: #cfddcf;
}
.nk-account { --paper: #fffdfa; --accent: #254457; --stroke: #deddd6; }
.nk-brand-layout *, .nk-brand-layout *::before, .nk-brand-layout *::after { box-sizing: border-box; }
.nk-brand-layout :where(h1, h2, h3, p, figure) { margin: 0; }
.nk-brand-layout img { max-width: 100%; }
.nk-brand-layout a { color: var(--accent); text-underline-offset: .18em; }
.nk-brand-layout :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.nk-width { max-width: 80rem; margin-inline: auto; }
.nk-skip { position: absolute; left: 1rem; top: 0; z-index: 10; padding: .6rem 1rem; background: var(--surface, white); transform: translateY(-110%); }
.nk-skip:focus { transform: translateY(0); }
.nk-header { background: var(--paper); border-bottom: 1px solid var(--stroke); }
.nk-nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 1rem;
    padding: .55rem var(--gutter);
}
.nk-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.nk-nav a:hover, .nk-nav a[aria-current] { text-decoration: underline; }
.nk-nav .nk-word { gap: .5rem; font-size: clamp(1.2rem, 2.2vw, 1.65rem); font-weight: 750; line-height: 1.1; letter-spacing: -.055em; white-space: nowrap; }
.nk-word img { width: 3.3rem; height: 3.3rem; object-fit: contain; }
.nk-word em { font-style: normal; color: var(--accent); }
.nk-primary-nav, .nk-utilities { display: flex; align-items: center; gap: clamp(.65rem, 1.8vw, 1.5rem); font-size: .92rem; font-weight: 650; }
.nk-primary-nav { justify-content: center; }
.nk-utilities { justify-content: flex-end; }
.nk-account .nk-nav { grid-template-columns: minmax(0, 1fr) auto auto; }
.nk-nav .nk-word { justify-self: start; }
.nk-account-link { padding: .25rem .8rem; border: 1px solid var(--ink); border-radius: .5rem; }
.nk-account-link:hover { background: var(--tint); }
.nk-mode-toggle {
    display: none;
    justify-self: end;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 3.65rem;
    padding: .25rem .65rem;
    border: 1px solid var(--stroke);
    border-radius: 2rem;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-weight: 650;
    font-size: .9rem;
    cursor: pointer;
}
.nk-mode-ready .nk-mode-toggle, .nk-mode-night { display: inline-flex; }
.nk-mode-toggle:hover { background: var(--tint); border-color: var(--accent); }
.nk-mode-night, .nk-mode-day { align-items: center; gap: .35rem; }
.nk-mode-day { display: none; }
.nk-mode-icon { color: var(--accent); font: 1.15rem/1 "Segoe UI Symbol", sans-serif; }
.nk-hero {
    display: grid;
    grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
    background: var(--tint);
    border-bottom: 1px solid var(--stroke);
}
.nk-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .95rem;
    padding: clamp(2rem, 4.1vw, 3.55rem) var(--gutter);
}
.nk-kicker { display: flex; align-items: center; gap: .5rem; font-size: .84rem; font-weight: 700; color: var(--accent); }
.nk-kicker img { object-fit: contain; }
.nk-hero h1 { font-size: clamp(2.3rem, 4.7vw, 3.9rem); line-height: 1.06; font-weight: 800; letter-spacing: -.055em; overflow-wrap: anywhere; }
.nk-games .nk-hero h1 { line-height: 1.22; }
.nk-hero-copy > p:not(.nk-kicker) { max-width: 33em; text-wrap: balance; }
.nk-brand-layout .nk-button { border-radius: 2rem; padding: .67rem 1.3rem; color: var(--on-accent); background: var(--accent); text-decoration: none; font-weight: 700; }
.nk-button:hover { filter: brightness(.9); }
.nk-hero-art { position: relative; isolation: isolate; overflow: hidden; background: var(--tint); }
.nk-hero-art { min-height: clamp(17rem, 25vw, 21rem); }
.nk-hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nk-hero-art .nk-farm-cat { inset: auto auto 2% 7%; width: 40%; height: 62%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 3px 3px #23382038); }
.nk-section { padding: clamp(1.35rem, 2.6vw, 2.2rem) var(--gutter); }
.nk-section h1 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); line-height: 1.2; letter-spacing: -.045em; overflow-wrap: anywhere; }
.nk-section h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.4; letter-spacing: -.035em; }
.nk-section .kh-tool-list, .nk-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}
.nk-section .kh-tool-list > li {
    display: grid;
    position: relative;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    min-width: 0;
    min-height: 9.2rem;
    border: 1px solid var(--stroke);
    border-radius: .85rem;
    background: var(--surface);
    color: var(--ink);
    overflow: hidden;
    text-decoration: none;
}
.nk-section .kh-tool-list > li:hover, .kh-tool-list > li:focus-within { border-color: var(--accent); }
.nk-section .kh-tool-list h3 { font-size: clamp(1rem, 1.6vw, 1.3rem); letter-spacing: -.035em; line-height: 1.35; }
.nk-section .kh-tool-list p { color: var(--secondary); font-size: .88rem; line-height: 1.65; }
.nk-section .kh-tool-list > li { grid-template-rows: auto 1fr auto; }
.nk-section .kh-tool-list figure { grid-row: 1 / 4; position: relative; min-height: 9.2rem; background: var(--tint); }
.nk-section .kh-tool-list figure:has(a[href$="/aurora-player/"]) { background: #090f20; }
.nk-section .kh-tool-list figure img { position: absolute; width: 100%; height: 100%; object-fit: contain; }
.nk-section .kh-tool-list h3 { padding: 1rem 1rem .35rem; }
.nk-section .kh-tool-list p { padding: 0 1rem .4rem; }
.nk-section .kh-tool-list > li::after {
    content: "製品詳細 →" / "";
    grid-column: 2;
    padding: .2rem 1rem .85rem;
    color: var(--accent);
    font-weight: 700;
    font-size: .85rem;
    pointer-events: none;
}
.nk-section .kh-card-link { color: var(--ink); text-decoration: none; }
.nk-section .kh-card-link::after { content: ""; position: absolute; inset: 0; }
.nk-section .kh-tool-list h3 a:hover { text-decoration: underline; }
.nk-game-feature {
    margin: clamp(1rem, 2.5vw, 1.75rem) var(--gutter) 0;
    border: 1px solid var(--stroke);
    border-radius: 1rem;
    box-shadow: 0 3px 12px #14273712;
    overflow: hidden;
}
.nk-game-feature .nk-hero-copy { gap: .65rem; padding: clamp(1.15rem, 2.5vw, 1.75rem); }
.nk-hero.nk-game-feature h1 { font-size: clamp(1.75rem, 3.2vw, 2.85rem); }
.nk-game-feature .nk-hero-art { min-height: clamp(11rem, 17vw, 15rem); }
.nk-game-feature .nk-game-tag { background: var(--surface); }
.nk-game-list-title { display: flex; align-items: center; gap: .6rem; }
.nk-game-list-title::before {
    content: "";
    flex: 0 0 .28rem;
    height: 1em;
    background: var(--accent);
    border-radius: 1rem;
}
.nk-game-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}
.nk-game-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--stroke);
    border-radius: .85rem;
    background: var(--surface);
    box-shadow: 0 3px 12px #14273712;
}
.nk-game-card:has(.nk-game-card-link:hover, .nk-game-card-link:focus-visible) { border-color: var(--accent); }
.nk-game-cover {
    border-radius: calc(.85rem - 1px) calc(.85rem - 1px) 0 0;
    overflow: hidden;
    background: var(--tint);
}
.nk-game-cover:empty { aspect-ratio: 16 / 9; }
.nk-game-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.nk-game-cover figcaption { padding: .35rem .9rem; color: var(--secondary); font-size: .78rem; }
.nk-game-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: .45rem;
    padding: .9rem;
    overflow-wrap: anywhere;
}
.nk-game-copy > br:first-child, .nk-game-copy > .nk-game-tag + br { display: none; }
.nk-game-copy h3 { font-size: 1.12rem; line-height: 1.35; }
.nk-game-copy p { color: var(--secondary); font-size: .9rem; }
.nk-game-tag {
    padding: .12em .65em;
    border-radius: 2rem;
    background: var(--tint);
    color: var(--accent);
    font-size: .78rem;
    font-weight: 700;
}
.nk-game-card .nk-game-card-link { color: var(--ink); text-decoration: none; }
.nk-game-card-link::after { content: ""; position: absolute; inset: 0; border-radius: .85rem; }
.nk-game-card-link:hover { text-decoration: underline; }
.nk-game-card-link:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 3px; }
.nk-game-card :is(a:not(.nk-game-card-link), button, input, select, textarea, summary, audio, video) { position: relative; z-index: 1; }
.nk-game-card-action { margin-top: auto; padding-top: .2rem; color: var(--accent); font-size: .85rem; font-weight: 700; }
.nk-player { margin: 0 var(--gutter) 1.75rem; padding-top: 1rem; border-top: 1px solid var(--stroke); }
.nk-player > h2 { margin-bottom: .75rem; font-size: 1.2rem; line-height: 1.4; }
.nk-games [hidden] { display: none !important; }
.nk-games .kh-lobby-profile {
    display: grid;
    grid-template-columns: clamp(4.5rem, 8vw, 7rem) repeat(2, minmax(0, 1fr)) minmax(10rem, .8fr);
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    border: 1px solid var(--stroke);
    border-radius: .8rem;
    background: var(--tint);
}
.nk-games .kh-lobby-profile > * { min-width: 0; overflow-wrap: anywhere; }
.nk-games .kh-lobby-avatar { display: grid; place-items: center; color: var(--accent); }
.nk-games .kh-lobby-avatar svg { display: block; width: 100%; max-height: 9rem; }
.nk-games .kh-lobby-identity strong, .nk-games .kh-lobby-recent-title { display: block; font-size: 1.15rem; }
.nk-games :is(.kh-lobby-eyebrow, .kh-lobby-recent-label, .kh-lobby-message, .kh-lobby-recent-note) { font-size: .85rem; color: var(--secondary); }
.nk-games .kh-lobby-recent-fields { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: .35rem 0 0; }
.nk-games .kh-lobby-recent-fields :is(dt, dd) { margin: 0; }
.nk-games .kh-lobby-recent-fields dt { color: var(--secondary); font-size: .8rem; }
.nk-games .kh-lobby-actions, .nk-games .kh-lobby-account-menu { display: grid; gap: .5rem; }
.nk-games .kh-lobby-actions :is(summary, .kh-lobby-secondary, button) {
    min-height: 44px;
    padding: .45rem .65rem;
    border: 1px solid var(--stroke);
    border-radius: .5rem;
    background: var(--surface);
    color: var(--accent);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}
.nk-games .kh-lobby-actions .kh-lobby-secondary { text-align: center; text-decoration: none; }
.nk-games .kh-lobby-account-menu { padding-block: .5rem; }
.nk-games .kh-lobby-account-menu .kh-game-login { position: static; width: auto; min-width: 0; max-width: 100%; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.nk-games .kh-game-login button { max-width: 100%; }
.nk-games .kh-lobby-bell { display: inline-flex; gap: .25rem; align-items: center; margin-inline: .5rem; }
.nk-back { display: inline-block; margin-bottom: 1rem; padding-block: .4rem; font-size: .9rem; }
.nk-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; gap: 2rem; }
.nk-detail .nk-kicker { margin-bottom: .7rem; }
.nk-detail figure img { width: 100%; display: block; border-radius: .7rem; }
.nk-detail figcaption { margin-top: .35rem; font-size: .8rem; color: var(--secondary); }
.nk-copy p, .nk-panels p { margin-top: .8rem; }
.nk-panels > section, .nk-editor-list { padding: 1.15rem; border: 1px solid var(--stroke); border-radius: .75rem; background: var(--surface); }
.nk-editor-list { display: flex; gap: .75rem; align-items: center; width: fit-content; max-width: 100%; margin-top: 1rem; color: var(--ink); text-decoration: none; }
.nk-editor-list small { display: block; color: var(--secondary); }
.nk-editor-list:hover { border-color: var(--accent); }
.nk-manual { margin-top: 1.5rem; }
.nk-manual > h2 { margin: 2rem 0 .6rem; }
.nk-manual > ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 23rem)); gap: 1rem; padding: 0; list-style: none; }
.nk-manual > ul > li { padding: 1rem; border: 1px solid var(--stroke); border-radius: .8rem; background: var(--surface); }
.nk-manual > ul > li img { width: 100%; height: 10rem; object-fit: contain; }
.nk-manual p { margin-block: .5em; }
.nk-entry .nk-back { margin-bottom: .7rem; }
.nk-entry-head { overflow: hidden; border: 1px solid var(--stroke); border-radius: 1rem; background: var(--tint); }
.nk-entry-head.nk-with-art { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); }
.nk-entry-head > div { display: grid; align-content: center; justify-items: start; gap: .85rem; padding: clamp(1.25rem, 3.6vw, 2.75rem); }
.nk-entry-head p { max-width: 37em; }
.nk-entry .nk-button { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; }
.nk-entry-art { position: relative; isolation: isolate; min-width: 0; min-height: 12rem; }
.nk-entry-art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.nk-entry-art .nk-entry-sprite { inset: auto auto 3% 8%; width: 45%; height: 72%; object-fit: contain; object-position: bottom; }
.nk-memo .nk-entry-art img { padding: 1rem; object-fit: contain; }
.nk-entry-art a { position: absolute; inset: 0; }
.nk-entry-art a:focus-visible { outline-offset: -4px; }
.nk-aurora { background: #121b26; color: #faf4e8; border-color: #293642; }
.nk-aurora .nk-kicker { color: #e9c88e; }
.nk-aurora .nk-button { background: #f3cf8b; color: #1a2530; }
.nk-aurora .nk-entry-art { background: #0b111a; }
.nk-aurora .nk-entry-art img { object-fit: contain; }
.nk-play, .nk-download { margin-top: 2rem; scroll-margin-block-start: 1rem; }
.nk-play > h2 { margin-bottom: .8rem; }
.nk-play .kh-game-screen { width: 100%; min-width: 0; }
/* Let the shared game stylesheet limit the width to match the available height. */
:where(.nk-play) iframe { display: block; max-width: 100%; }
.nk-prose { margin-top: 1.75rem; overflow-wrap: anywhere; }
.nk-prose > :is(h2, h3) { margin: 1.7rem 0 .6rem; }
.nk-prose > :is(p, details, ul, ol, table, dl, figure, section) { margin-block: .8rem; }
.nk-prose > :is(p, ul, ol, details) { max-width: 78ch; }
.nk-prose :is(li, dd) { margin-bottom: .25rem; }
.nk-prose img { max-width: 100%; height: auto; }
.nk-prose summary { cursor: pointer; font-weight: 650; }
.nk-prose .kh-game-player { margin-block: 1.5rem; }
.nk-prose .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; }
.nk-prose .wp-block-gallery figure { margin: 0; }
.nk-prose .wp-block-gallery img { display: block; width: 100%; border-radius: .6rem; }
.nk-prose .wp-block-gallery figcaption { margin-top: .4rem; font-size: .9rem; color: var(--secondary); }
.nk-download { display: grid; justify-items: start; gap: .65rem; padding: 1.25rem; background: var(--tint); border-radius: .7rem; }
.nk-note { font-size: .86rem; color: var(--secondary); }
.nk-footer { border-top: 1px solid var(--stroke); color: var(--secondary); font-size: .82rem; }
.nk-footer .nk-width { padding: 1.05rem var(--gutter); }

.nk-aurora-product { color-scheme: dark; }
.nk-aurora-product > .nk-header, .nk-gsve-product > .nk-header { position: relative; z-index: 41; }
.nk-aurora-product > .nk-skip, .nk-gsve-product > .nk-skip { color: #142737; z-index: 100; }
.nk-aurora-product .nav-cta { min-height: 44px; }
@media (min-width: 601px) {
    .nk-aurora-product.admin-bar .site-header, .nk-gsve-product.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
}
@media (min-width: 701px) and (max-width: 930px) {
    .nk-aurora-product .nav-inner, .nk-aurora-product .nav-links { gap: .75rem; }
    .nk-aurora-product .nav-version { display: none; }
}
@media (max-width: 700px) {
    .nk-aurora-product .site-header { height: 3.25rem; }
    .nk-aurora-product .nav-links, .nk-aurora-product .nav-version { display: none; }
}

@media (max-width: 62.4375rem) {
    .nk-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 48rem) {
    .nk-nav, .nk-account .nk-nav { grid-template-columns: minmax(0, 1fr) auto; gap: 0 .4rem; padding: .35rem var(--gutter) 0; }
    .nk-mode-toggle { grid-row: 1; grid-column: 2; }
    .nk-primary-nav { grid-row: 2; grid-column: 1; justify-content: flex-start; flex-wrap: wrap; gap: 0 clamp(.45rem, 2.5vw, 1.5rem); }
    .nk-utilities { grid-row: 2; grid-column: 2; gap: .6rem; }
    .nk-account .nk-utilities { grid-column: 1 / -1; justify-content: flex-start; }
    .nk-word img { width: 2.85rem; height: 2.85rem; }
    .nk-hero { grid-template-columns: minmax(0, 1fr); }
    .nk-hero-copy { padding: 1.5rem var(--gutter); gap: .65rem; }
    .nk-hero-art { min-height: 0; aspect-ratio: 1.95; }
    .nk-game-feature .nk-hero-art { min-height: 0; aspect-ratio: 2.6; }
    .nk-section .kh-tool-list, .nk-panels, .nk-detail { grid-template-columns: minmax(0, 1fr); }
    .nk-detail { gap: 1.2rem; }
    .nk-entry-head.nk-with-art { grid-template-columns: minmax(0, 1fr); }
    .nk-entry-art { min-height: 0; aspect-ratio: 2.2; }
    .nk-games .kh-lobby-profile { grid-template-columns: 4.5rem minmax(0, 1fr); gap: .85rem; }
    .nk-games .kh-lobby-recent, .nk-games .kh-lobby-actions { grid-column: 1 / -1; }
}
@media (max-width: 37.4375rem) {
    .nk-game-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 26rem) {
    .nk-nav { padding-inline: .6rem; }
    .nk-nav .nk-word { font-size: clamp(1rem, 4.5vw, 1.2rem); gap: .18rem; }
    .nk-word img { width: 2.5rem; height: 2.5rem; }
    .nk-primary-nav, .nk-utilities { font-size: .8rem; }
    .nk-account-link { padding-inline: .45rem; }
    .nk-hero h1 { font-size: clamp(2rem, 8.4vw, 2.6rem); }
    .nk-section .kh-tool-list > li { grid-template-columns: minmax(0, .64fr) minmax(0, 1fr); }
}
