:root {
  --ink: #172033; --muted: #667085; --line: #dfe3ea; --paper: #fff;
  --soft: #f5f7fa; --accent: #bd7a25; --accent-soft: #fff7e8; --blue: #24466f;
  --shell: min(1080px, calc(100% - 40px));
  /* content.js の site.fonts から上書きできます。 */
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.8; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.skip-link:focus { position: fixed; z-index: 200; top: 12px; left: 12px; padding: 8px 12px; background: #fff; border: 1px solid var(--ink); }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.brand span { display: grid; line-height: 1.25; }
.brand strong { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.brand small { color: var(--muted); font-size: 9px; letter-spacing: .14em; }
.global-nav { display: flex; gap: 28px; }
.global-nav a { text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.global-nav a:hover, .global-nav a:focus-visible { color: var(--accent); }
.menu-button { display: none; border: 0; background: none; color: var(--ink); font: 700 12px var(--sans); letter-spacing: .08em; }
.hero { padding: 18px 0 8px; background: linear-gradient(180deg, #f5f7fa 0%, #fff 100%); text-align: center; }
.profile-shell { width: min(780px, calc(100% - 40px)); margin-inline: auto; }
.hero-copy { padding-block: 6px; }
.kicker, .section-kicker { margin: 0 0 14px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.profile-logo { width: 96px; height: 96px; margin: 0 auto 5px; object-fit: contain; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(30px, 3.5vw, 38px); font-weight: 600; line-height: 1.25; letter-spacing: .04em; }
.profile-subtitle { margin: 3px 0 0; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.hero-description { max-width: 760px; margin: 8px auto 0; color: var(--muted); font-size: 13px; line-height: 1.65; white-space: pre-line; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 22px; border: 1px solid var(--blue); color: var(--blue); background: #fff; text-decoration: none; font-size: 14px; font-weight: 700; }
.button-primary { color: #fff; background: var(--blue); }
.button:hover { filter: brightness(.96); }
.link-hub { padding: 8px 0 54px; background: #fff; }
.link-hub-heading { margin-bottom: 14px; text-align: center; }
.link-hub-heading .section-kicker { margin-bottom: 5px; }
.link-hub-heading h2 { margin: 0; font-family: var(--serif); font-size: 25px; font-weight: 600; }
.link-hub-heading > p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.section { padding: 90px 0; border-top: 1px solid var(--line); }
.section-muted { background: var(--soft); }
.section-heading { display: grid; grid-template-columns: 220px 1fr; gap: 28px; margin-bottom: 42px; }
.section-heading h2, .about-layout h2 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 4vw, 48px); font-weight: 500; line-height: 1.35; }
.section-heading p:last-child { max-width: 620px; margin: 8px 0 0; color: var(--muted); }
.featured-project { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); background: #fff; }
.featured-project > img { display: block; width: 100%; height: auto; object-fit: contain; }
.project-content { padding: clamp(30px, 5vw, 54px); }
.project-content h3 { margin: 7px 0 18px; font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); font-weight: 500; line-height: 1.45; }
.project-content > p { color: var(--muted); }
.meta-list { margin: 26px 0; border-top: 1px solid var(--line); }
.meta-list div { display: grid; grid-template-columns: 100px 1fr; padding: 9px 0; border-bottom: 1px solid var(--line); }
.meta-list dt { color: var(--muted); font-size: 13px; }
.meta-list dd { margin: 0; font-size: 13px; font-weight: 700; }
.credits-list { margin: -8px 0 24px; }
.credits-list div { display: flex; flex-wrap: wrap; gap: 0 .35em; margin-top: 5px; }
.credits-list dt, .credits-list dd { margin: 0; font-size: 12px; line-height: 1.7; }
.credits-list dt { color: var(--muted); }
.credits-list dt::after { content: "："; }
.credits-list dd { color: var(--ink); font-weight: 700; }
.text-links { display: flex; flex-wrap: wrap; gap: 18px; }
.text-link { color: var(--blue); text-underline-offset: 4px; font-size: 13px; font-weight: 700; }
.is-disabled { color: var(--muted); opacity: .62; text-decoration: none; cursor: default; }
.game-group + .game-group { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); }
.game-group-heading { margin-bottom: 24px; }
.game-group-heading .label { margin: 0 0 3px; }
.game-group-heading h3 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 600; }
.game-group-heading > p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 20px; }
.game-card { display: grid; grid-template-columns: minmax(240px, 40%) 1fr; min-height: 200px; border: 1px solid var(--line); background: #fff; }
.game-card > img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.game-card-body { padding: 25px; }
.game-card h3 { margin: 4px 0 10px; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.game-card p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.game-card .credits-list { margin: -4px 0 14px; }
.label { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.two-column { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.info-card { padding: 34px; border: 1px solid var(--line); background: #fff; }
.info-card h3 { margin: 4px 0 10px; font-size: 25px; }
.info-card p { margin: 0 0 22px; color: var(--muted); }
.link-grid { display: grid; grid-template-columns: 1fr; gap: 6px; }
.service-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 54px; padding: 5px 18px 5px 20px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 3px; text-decoration: none; background: #fff; box-shadow: 0 3px 12px rgba(23,32,51,.04); }
.service-link:nth-child(2) { border-left-color: var(--accent); }
.service-link:nth-child(3) { border-left-color: #5c6faa; }
.service-link:nth-child(4) { border-left-color: #333; }
.service-link:nth-child(5) { border-left-color: #ff8faf; }
.service-link:nth-child(6) { border-left-color: #2f7ecb; }
.service-link:hover { border-color: var(--blue); border-left-width: 4px; transform: translateY(-1px); }
.service-main { display: flex; align-items: center; gap: 13px; min-width: 0; }
.service-main img { flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid rgba(23,32,51,.1); border-radius: 10px; object-fit: cover; box-shadow: 0 2px 7px rgba(23,32,51,.1); }
.service-main > div { min-width: 0; }
.service-link strong { display: block; }
.service-link span { color: var(--muted); font-size: 12px; }
.service-link.is-disabled { pointer-events: none; }
.service-link b { color: var(--accent); font-size: 18px; }
.works-scroll { display: block; width: max-content; margin: 18px auto 0; color: var(--blue); text-underline-offset: 5px; font-size: 13px; font-weight: 700; }
.about-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.about-copy { max-width: 720px; }
.about-copy p { margin-top: 0; color: #424b5f; }
.news-list { border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 120px 90px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-item time, .news-item span { color: var(--muted); font-size: 13px; }
.news-item p { margin: 0; }
.site-footer { padding: 46px 0; color: #fff; background: var(--ink); }
.footer-inner { display: flex; align-items: end; justify-content: flex-end; gap: 30px; }
.footer-inner p { margin: 0; }
.footer-inner span { color: rgba(255,255,255,.58); font-size: 12px; }
.footer-inner a { color: #fff; font-size: 13px; }
.noscript { padding: 20px; text-align: center; }
@media (max-width: 800px) {
  :root { --shell: min(100% - 30px, 620px); }
  .header-inner { min-height: 58px; }
  .menu-button { display: block; }
  .global-nav { position: fixed; inset: 58px 0 auto; display: none; padding: 18px 20px 26px; border-bottom: 1px solid var(--line); background: #fff; }
  .global-nav.is-open { display: grid; gap: 0; }
  .global-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .hero { padding: 18px 0 8px; }
  .featured-project, .section-heading, .about-layout { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .section-heading { gap: 3px; margin-bottom: 30px; }
  .game-grid, .two-column { grid-template-columns: 1fr; }
}
@media (min-width: 601px) and (max-width: 800px) {
  .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 801px) {
  .link-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 500px) {
  .brand small { display: none; }
  .profile-shell { width: min(100% - 30px, 620px); }
  .profile-logo { width: 86px; height: 86px; margin-bottom: 6px; }
  .hero h1 { font-size: 31px; }
  .hero-description { margin-top: 9px; font-size: 13px; line-height: 1.65; }
  .link-hub-heading > p:last-child { font-size: 12px; }
  .service-link { min-height: 50px; padding-block: 5px; }
  .service-main { gap: 10px; }
  .service-main img { width: 38px; height: 38px; border-radius: 9px; }
  .service-link span { font-size: 11px; }
  .game-card { grid-template-columns: 1fr; }
  .game-card > img { width: 100%; height: auto; }
  .game-card-body { padding: 20px; }
  .news-item { grid-template-columns: 1fr auto; gap: 2px 14px; }
  .news-item p { grid-column: 1 / -1; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
