@charset "UTF-8";

@font-face {
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/m-plus-rounded-1c-latin-400.woff2") format("woff2");
  unicode-range: U+0000-024F;
}
@font-face {
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/m-plus-rounded-1c-japanese-400.woff2") format("woff2");
  unicode-range: U+2000-206F, U+3000-30FF, U+31F0-31FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF;
}
@font-face {
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/m-plus-rounded-1c-latin-700.woff2") format("woff2");
  unicode-range: U+0000-024F;
}
@font-face {
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/m-plus-rounded-1c-japanese-700.woff2") format("woff2");
  unicode-range: U+2000-206F, U+3000-30FF, U+31F0-31FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF;
}

/* =========================================================
   STUDIO PEANUTS DESIGN SYSTEM
   Shared tokens and components for every public page.
   ========================================================= */
:root {
  --ink: #242321;
  --muted: #77736d;
  --line: #e6e0d5;
  --paper: #fff;
  --cream: #f6f0e5;
  --surface: #faf9f7;
  --accent: #e98949;
  --accent-soft: #fff2e8;
  --accent-muted: #efb184;
  --work-title-marker: #a9dbe7;
  --danger: #c73333;
  --header-h: 76px;
  --footer-h: 40px;
  --content-w: 1080px;
  --narrow-w: 800px;
  --radius: 18px;
  --shadow: 0 12px 30px rgba(48, 40, 30, .08);
  --page-hero-start: 80px;
  --page-hero-end: 80px;
  --page-title-start: 34px;
  --page-title-end: 34px;
  --page-chrome-range: 136;
  --page-hero-h: var(--page-hero-start);
  --page-title-size: var(--page-title-start);
  --local-nav-h: 62px;
  --anchor-offset: 250px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  padding: var(--header-h) 0 calc(var(--footer-h) + env(safe-area-inset-bottom, 0px));
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: "M PLUS Rounded 1c", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
main { min-height: calc(100svh - var(--header-h) - var(--footer-h)); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus, button:focus { outline: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[id] { scroll-margin-top: var(--anchor-offset); }
.container { width: min(calc(100% - 48px), var(--content-w)); margin-inline: auto; }
.content-narrow { width: min(100%, var(--narrow-w)); margin-inline: auto; }
.note { font-size: 12px; color: var(--danger); }
.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;
}

/* Fixed site header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 2000;
  height: var(--header-h);
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: block; line-height: 0; }
.brand-link { display: flex; align-items: center; gap: 8px; width: fit-content; line-height: 0; }
.header-character { flex: 0 0 auto; width: auto; height: 36px; object-fit: contain; }
.brand-logo, .custom-logo { display: block; width: auto; height: 36px; max-width: 260px; object-fit: contain; }
.desktop-nav, .desktop-nav ul { display: flex; align-items: center; gap: 29px; }
.desktop-nav { font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.desktop-nav ul, .mobile-panel ul { padding: 0; margin: 0; list-style: none; }
.desktop-nav a { position: relative; }
.desktop-nav a::after {
  position: absolute;
  right: 100%;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--accent);
  transition: right .2s;
}
.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after,
.desktop-nav .current-menu-item > a::after,
.desktop-nav .current_page_item > a::after { right: 0; }
.menu-button {
  display: none;
  padding: 12px 0 12px 12px;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  cursor: pointer;
  background: transparent;
  border: 0;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.menu-icon { position: relative; display: inline-block; width: 20px; height: 13px; margin-left: 8px; }
.menu-icon::before, .menu-icon::after { position: absolute; right: 0; width: 100%; height: 2px; content: ""; background: currentColor; transform-origin: right center; }
.menu-icon::before { top: 0; }
.menu-icon::after { bottom: 0; }
.menu-button.is-secret-chomping .menu-icon::before { animation: menu-secret-chomp-top 5s ease-in-out both; }
.menu-button.is-secret-chomping .menu-icon::after { animation: menu-secret-chomp-bottom 5s ease-in-out both; }
@keyframes menu-secret-chomp-top {
  0% { transform: translateY(0) rotate(0); }
  8%, 88% { transform: translateY(5px) rotate(0); }
  16%, 32%, 48%, 64%, 80% { transform: translateY(5px) rotate(20deg); }
  24%, 40%, 56%, 72% { transform: translateY(5px) rotate(0); }
  100% { transform: translateY(0) rotate(0); }
}
@keyframes menu-secret-chomp-bottom {
  0% { transform: translateY(0) rotate(0); }
  8%, 88% { transform: translateY(-5px) rotate(0); }
  16%, 32%, 48%, 64%, 80% { transform: translateY(-5px) rotate(-20deg); }
  24%, 40%, 56%, 72% { transform: translateY(-5px) rotate(0); }
  100% { transform: translateY(0) rotate(0); }
}
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  pointer-events: none;
  visibility: hidden;
  background: rgba(22, 20, 18, .28);
  opacity: 0;
  transition: opacity .22s, visibility 0s linear .22s;
}
.mobile-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(70vw, 300px);
  height: auto;
  padding: 62px 28px 28px;
  color: #fff;
  background: rgba(42, 39, 35, .98);
  border-radius: 0 0 0 18px;
  box-shadow: 0 18px 42px rgba(20, 18, 16, .2);
  transform: translateX(100%);
  transition: transform .24s ease;
}
.mobile-menu-close {
  position: absolute;
  top: 15px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  background: transparent;
  border: 0;
}
.mobile-panel ul, .mobile-panel nav { display: grid; gap: 1px; }
.mobile-panel ul, .mobile-panel li { width: 100%; }
.mobile-panel a { position: relative; display: block; width: 100%; padding: 0 10px; font-weight: 800; letter-spacing: .14em; border: 0; transition: color .16s, background .16s; }
.mobile-nav, .mobile-nav * { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.mobile-nav a::before {
  position: absolute;
  top: 50%;
  left: -18px;
  width: 0;
  height: 0;
  content: "";
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--accent);
  opacity: 0;
  transform: translate(-5px, -50%) scale(.82);
  transition: opacity .12s, transform .12s;
}
.mobile-nav a.is-longpress-target { color: #fff4e9; background: rgba(233, 137, 73, .1); border-radius: 7px; }
.mobile-nav a.is-longpress-target::before { opacity: 1; transform: translate(0, -50%) scale(1); }
body.menu-open { overflow: hidden; }
body.menu-open .mobile-overlay { pointer-events: auto; visibility: visible; opacity: 1; transition-delay: 0s; }
body.menu-open .mobile-panel { transform: none; }

/* TOP */
.home-hero { background: linear-gradient(135deg, #faf6ee 0%, var(--cream) 72%); }
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(28px, 3vw, 42px);
  align-items: center;
  min-height: 560px;
  padding-block: 76px;
}
.studio-name { margin: 0; line-height: 0; }
.studio-name-picture { display: block; }
.studio-name-logo { display: block; width: min(100%, 710px); height: auto; }
.home-update-panel { display: flex; flex-direction: column; width: min(100%, 430px); height: 120px; min-height: 120px; padding: 10px 18px; margin-top: 12px; background: rgba(255, 255, 255, .66); border: 1px solid rgba(233, 137, 73, .28); border-radius: 14px; box-shadow: 0 8px 24px rgba(76, 58, 36, .055); }
.home-update-panel h2 { margin: 0 0 5px; color: var(--accent); font-size: 12px; line-height: 1.2; letter-spacing: .16em; }
.home-update-hop { display: inline-flex; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; background: transparent; border: 0; }
.home-update-hop:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
.home-update-letter { display: inline-block; transform-origin: center bottom; }
.home-update-hop.is-secret-hopping .home-update-letter { animation: update-secret-hop 2s cubic-bezier(.35, .05, .2, 1) both; animation-delay: calc(var(--update-letter-index) * 2s); }
@keyframes update-secret-hop {
  0%, 100% { transform: translateY(0) rotate(0) scale(1); }
  12% { transform: translateY(0) rotate(0) scale(1.08, .76); }
  30% { transform: translateY(-.85em) rotate(-7deg) scale(.94, 1.08); }
  48% { transform: translateY(0) rotate(4deg) scale(1.08, .78); }
  64% { transform: translateY(-.3em) rotate(-3deg) scale(.98, 1.04); }
  80% { transform: translateY(0) rotate(1deg) scale(1.03, .9); }
}
.home-update-list {
  --update-list-fade: 9px;
  display: block;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-color: rgba(233, 137, 73, .45) transparent;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--update-list-fade), #000 calc(100% - var(--update-list-fade)), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--update-list-fade), #000 calc(100% - var(--update-list-fade)), transparent 100%);
}
.home-update-list::-webkit-scrollbar { width: 4px; }
.home-update-list::-webkit-scrollbar-thumb { background: rgba(233, 137, 73, .45); border-radius: 999px; }
.home-update-row { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 20px; padding: 2px 0; font-size: 11px; line-height: 1.35; border-top: 1px solid rgba(230, 224, 213, .72); }
.home-update-row time { color: var(--muted); font-variant-numeric: tabular-nums; }
.home-update-row span { overflow: hidden; padding-bottom: 1px; font-weight: 700; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.home-update-row:hover span { color: var(--accent); }
.home-update-empty { margin: 0; color: var(--muted); font-size: 11px; }
.hero-character { align-self: center; justify-self: center; width: min(100%, 390px); filter: drop-shadow(0 18px 20px rgba(65, 48, 31, .08)); }

.home-links-section { padding: 72px 0 78px; background: var(--paper); }
.home-links-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.home-link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 168px;
  padding: 30px 72px 30px 30px;
  overflow: hidden;
  background: linear-gradient(135deg, #fffaf5 0%, var(--accent-soft) 100%);
  border: 1px solid #efcfb9;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(103, 67, 38, .07);
  transition: color .2s, background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.home-link-card:hover { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 14px 30px rgba(144, 76, 33, .2); transform: translateY(-2px); }
.home-link-label { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; line-height: 1.15; letter-spacing: .06em; }
.home-link-description { margin-top: 10px; color: var(--muted); font-size: 14px; font-weight: 650; letter-spacing: .08em; }
.home-link-arrow { position: absolute; right: 24px; bottom: 22px; display: grid; place-items: center; width: 36px; height: 36px; color: #fff; font-size: 22px; line-height: 1; background: var(--accent); border-radius: 999px; transition: color .2s, background .2s, transform .2s; }
.home-link-card:hover .home-link-description { color: rgba(255, 255, 255, .86); }
.home-link-card:hover .home-link-arrow { color: var(--accent); background: #fff; transform: translateX(4px); }

.news-section { padding: 72px 0 108px; background: var(--surface); }
.home-update-mobile { display: none; }
.section-title { margin: 0 0 34px; font-size: 32px; letter-spacing: .08em; }
.news-list { border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 150px 1fr; gap: 30px; padding: 20px 8px; border-bottom: 1px solid var(--line); transition: background .2s; }
.news-item:hover { background: #fff; }
.news-item time { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Page title and optional local navigation */
.page-chrome { position: sticky; top: var(--header-h); z-index: 900; margin-bottom: 31px; background: var(--cream); }
.page-chrome:not(.has-local) { margin-bottom: 0; }
.page-hero { display: flex; align-items: center; height: var(--page-hero-h); overflow: hidden; background: var(--cream); border-bottom: 1px solid rgba(0, 0, 0, .035); }
.page-hero .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.page-title {
  margin: 0;
  font-size: var(--page-title-size);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .05em;
  white-space: nowrap;
  -webkit-text-stroke: .45px var(--ink);
  paint-order: stroke fill;
}
.page-chrome--works { --page-title-accent: #0e6eb8; }
.page-chrome--recruit { --page-title-accent: #23ac38; }
.page-chrome--company { --page-title-accent: #e60012; }
.page-chrome--contact { --page-title-accent: #f7ee13; }
.page-chrome--privacy-policy { --page-title-accent: #920783; }
.page-chrome--privacy-policy .page-title { font-size: min(var(--page-title-size), 8.2vw); letter-spacing: .035em; }
.page-chrome.is-compact .page-title {
  color: transparent;
  background-color: var(--ink);
  background-image: linear-gradient(110deg,
    var(--ink) 0%,
    var(--ink) 42%,
    var(--page-title-accent, var(--accent)) 47%,
    #fff 50%,
    var(--page-title-accent, var(--accent)) 53%,
    var(--ink) 58%,
    var(--ink) 100%);
  background-repeat: no-repeat;
  background-position: 130% 0;
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: page-title-shimmer 6s ease-in-out infinite;
}
@keyframes page-title-shimmer {
  0% { background-position: 130% 0; }
  66.667%, 100% { background-position: -130% 0; }
}
.page-description { max-width: 560px; margin: 0; color: var(--muted); font-size: 14px; text-align: right; opacity: var(--desc-opacity, 1); transform: translateY(var(--desc-shift, 0)); }
.local-nav {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(60%, 760px);
  height: var(--local-nav-h);
  padding: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transform: translate(-50%, 50%);
}
.local-nav a { display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 16px; font-size: 13px; font-weight: 750; line-height: 1; white-space: nowrap; border-radius: 12px; }
.local-nav a:hover, .local-nav a.active, .local-nav a[aria-current="location"] { color: #a95118; background: var(--accent-soft); }
.page-local-recruit .scroll-nav-row { width: 100%; }
.page-local-recruit .scroll-nav-track a { padding-inline: 16px; }
.page-local-recruit .scroll-nav-track { scroll-snap-type: none; }

/* WORKS local navigation */
.works-local-nav { justify-content: flex-start; gap: 0; overflow: visible; }
.works-local-nav .material-link { flex: 0 0 auto; height: 44px; padding-inline: 18px; border-right: 1px solid var(--line); border-radius: 12px 0 0 12px; }
.scroll-nav-row { display: grid; flex: 1; grid-template-columns: 32px minmax(0, 1fr) 32px; align-items: center; min-width: 0; height: 44px; }
.scroll-nav-button { position: relative; z-index: 4; display: grid; place-items: center; width: 32px; height: 44px; padding: 0; color: #8f8981; font-size: 24px; line-height: 1; cursor: pointer; background: #fff; border: 0; transition: color .18s, opacity .18s; }
.scroll-nav-button:hover { color: var(--ink); }
.scroll-nav-button:disabled { cursor: default; opacity: .24; }
.scroll-nav-button span { display: block; transform: translateY(-1px); }
.scroll-nav-shell { position: relative; min-width: 0; height: 44px; overflow: hidden; }
.scroll-nav-track { display: flex; align-items: center; height: 44px; padding-inline: calc(50% - 32px); overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; scroll-behavior: smooth; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.scroll-nav-track::-webkit-scrollbar { display: none; }
.scroll-nav-track a { flex: 0 0 auto; height: 44px; padding-inline: 14px; scroll-snap-align: center; }
.scroll-nav-shell::before, .scroll-nav-shell::after { position: absolute; top: 0; bottom: 0; z-index: 3; width: 36px; pointer-events: none; content: ""; }
.scroll-nav-shell::before { left: 0; background: linear-gradient(90deg, #fff 16%, rgba(255, 255, 255, .9) 34%, rgba(255, 255, 255, 0)); }
.scroll-nav-shell::after { right: 0; background: linear-gradient(270deg, #fff 16%, rgba(255, 255, 255, .9) 34%, rgba(255, 255, 255, 0)); }

/* Shared content */
.content-section { padding: 54px 0 110px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; font-weight: 750; border: 1px solid var(--ink); border-radius: 999px; transition: .2s; }
.button:hover { color: #fff; background: var(--ink); }
.wp-block-image img { height: auto; }
.wp-block-table table { width: 100%; }
br.sp-mobile-break { display: none; }
br.sp-mobile-break.is-wrap-required { display: initial; }

/* WORKS */
.works-content-section { padding-top: clamp(38px, 5vw, 72px); }
.works-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(38px, 5vw, 72px) clamp(24px, 3vw, 42px); align-items: start; }
.work-card { min-width: 0; }
.work-card-media { aspect-ratio: 707 / 1000; overflow: hidden; background: #eee9df; border-radius: 16px; box-shadow: var(--shadow); }
.work-card-image-button { display: block; width: 100%; height: 100%; padding: 0; cursor: zoom-in; background: transparent; border: 0; }
.work-card-image-button img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.work-card-image-button:hover img { transform: scale(1.018); }
.work-card-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #a49c91; background: linear-gradient(145deg, #f2eee7, #e6ded2); }
.work-card-placeholder span { font-size: clamp(18px, 2vw, 25px); font-weight: 800; letter-spacing: .12em; }
.work-card-copy { padding: 20px 4px 0; text-align: center; }
.work-card-meta { display: flex; justify-content: center; gap: .8em; margin: 0 0 5px; font-size: 15px; font-weight: 800; letter-spacing: .025em; }
.work-card-title { margin: 0; font-size: clamp(20px, 2.1vw, 28px); line-height: 1.35; }
.work-card-title a:hover { color: var(--accent); }
.work-card-role { margin: 7px 0 0; color: var(--muted); font-size: 15px; font-weight: 700; line-height: 1.5; }
.work-card-role::before { margin-right: .55em; color: var(--accent-muted); font-size: .7em; content: "●"; }
.works-empty { margin: 0; color: var(--muted); text-align: center; }

.work-lightbox { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 24px; pointer-events: none; visibility: hidden; opacity: 0; transition: opacity .2s, visibility 0s linear .2s; }
.work-lightbox.is-open { pointer-events: auto; visibility: visible; opacity: 1; transition: opacity .2s; }
.work-lightbox-backdrop { position: absolute; inset: 0; padding: 0; margin: 0; cursor: zoom-out; background: rgba(20, 19, 18, .82); border: 0; }
.work-lightbox-dialog { position: relative; z-index: 1; display: grid; place-items: center; max-width: min(92vw, 1100px); max-height: 88vh; }
.work-lightbox-dialog img { display: block; width: auto; max-width: 100%; height: auto; max-height: 88vh; object-fit: contain; border-radius: 8px; box-shadow: 0 24px 70px rgba(0, 0, 0, .38); }
.work-lightbox-close { position: absolute; top: -18px; right: -18px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; background: rgba(20, 19, 18, .88); border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; }
body.lightbox-open { overflow: hidden; }

/* RECRUIT */
.recruit-current { padding-top: 0; }
.recruit-current-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.recruit-current-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); }
.recruit-current-row + .recruit-current-row { border-top: 1px solid var(--line); }
.recruit-current-row h3, .recruit-current-row p { padding: 18px 20px; margin: 0; }
.recruit-current-row h3 { background: var(--cream); font-size: 16px; }
.recruit-current-row p { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.recruit-current-row a { font-weight: 750; text-decoration: underline; text-decoration-color: var(--accent-muted); text-underline-offset: .25em; }
.recruit-current-row a:hover { color: var(--accent); }
.recruit-floating-apply { position: fixed; right: 22px; bottom: calc(var(--footer-h) + 18px + env(safe-area-inset-bottom, 0px)); z-index: 1900; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .06em; background: var(--accent); border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px; box-shadow: 0 10px 24px rgba(136, 73, 30, .24); transition: transform .2s, background .2s; }
.recruit-floating-apply:hover { background: #d9712d; transform: translateY(-2px); }
.job-section { padding: 42px 0; border-top: 1px solid var(--line); }
.job-section:first-child { border-top: 0; }
.job-section h2 { margin: 0 0 24px; font-size: 28px; }
.definition { display: grid; grid-template-columns: 190px 1fr; }
.definition dt, .definition dd { padding: 18px 12px; margin: 0; border-bottom: 1px solid var(--line); }
.definition dt { color: #5e5a54; font-weight: 750; }
.apply-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px; margin-top: 22px; background: var(--cream); border-radius: var(--radius); }
.apply-box.job-section { border-top: 0; }

/* COMPANY */
.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td { padding: 19px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.company-table th { width: 210px; color: #66615b; }
.business-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 52px 0; }
.business-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); }
.business-card h2 { margin: 0 0 18px; font-size: 20px; }
.business-card ul { padding-left: 20px; margin: 0; }
.business-phone { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 18px; margin: 20px 0 0; border-top: 1px solid var(--line); }
.business-phone span { color: var(--muted); font-size: 13px; font-weight: 700; }
.business-phone a { font-weight: 800; letter-spacing: .04em; }
.maps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 54px; }
.map-card h2 { font-size: 20px; }
.map-card iframe { width: 100%; height: 300px; border: 0; border-radius: var(--radius); }

/* CONTACT / PRIVACY */
.contact-box { padding: 42px; border: 1px solid var(--line); border-radius: var(--radius); }
.form-grid { display: grid; gap: 22px; }
.field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 750; }
.field input, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid #cfc8be; border-radius: 10px; }
.field textarea { min-height: 180px; resize: vertical; }
.privacy { font-size: 14px; line-height: 2; }
.privacy h2 { margin-top: 44px; }
.privacy-policy-content { display: grid; gap: 22px; }
.privacy-policy-content p { margin: 0; }
.privacy-policy-content .privacy-lead { padding-bottom: 28px; margin-bottom: 8px; font-size: 16px; font-weight: 700; line-height: 1.9; border-bottom: 1px solid var(--line); }
.privacy-exceptions { display: grid; gap: 8px; padding: 0 0 0 1em; margin: -6px 0 0; list-style: none; }

/* Fixed footer */
.slim-footer { position: fixed; right: 0; bottom: 0; left: 0; z-index: 2200; min-height: calc(var(--footer-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); color: #ddd; font-size: 10px; background: #292826; }
.footer-inner { display: flex; align-items: center; justify-content: center; gap: 24px; height: var(--footer-h); }
.footer-brand { font-weight: 800; letter-spacing: .1em; }
.footer-company { color: #aaa; }

@media (min-width: 761px) {
  .hero-copy { align-self: stretch; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
  .hero-copy .studio-name { align-self: center; grid-row: 1; }
  .home-update-panel--hero { grid-row: 2; margin-top: 0; }
  .home-hero-grid { min-height: clamp(300px, 43svh, 460px); padding-block: clamp(28px, 5svh, 58px); }
  .home-links-section { padding: clamp(18px, 3svh, 38px) 0; }
  .home-links-grid { gap: clamp(12px, 1.8svh, 20px); }
  .home-link-card { min-height: clamp(98px, 11.5svh, 132px); padding-block: clamp(18px, 2.4svh, 28px); }
  .home-update-mobile { display: none; }
}

@media (min-width: 761px) and (max-height: 1000px) {
  .home-hero-grid { min-height: clamp(280px, 40svh, 360px); padding-block: 22px; }
  .hero-character { max-height: clamp(225px, calc(100svh - 500px), 340px); object-fit: contain; }
  .home-links-section { padding-block: 12px; }
  .home-links-grid { gap: 10px; }
}

/* WordPress admin bar */
.admin-bar .site-header { top: 32px; }
.admin-bar .page-chrome { top: calc(var(--header-h) + 32px); }

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .page-chrome { top: calc(var(--header-h) + 46px); }
}

@media (min-width: 761px) and (max-width: 900px) {
  .local-nav { width: calc(100% - 48px); }
}

@media (max-width: 760px) {
  :root {
    --header-h: 66px;
    --footer-h: 46px;
    --page-hero-start: 49px;
    --page-hero-end: 49px;
    --page-title-start: 29px;
    --page-title-end: 29px;
    --page-chrome-range: 88;
    --page-hero-h: var(--page-hero-start);
    --page-title-size: var(--page-title-start);
    --local-nav-h: 50px;
    --anchor-offset: 188px;
  }
  body { line-height: 1.7; }
  br.sp-mobile-break { display: none; }
  br.sp-mobile-break.is-wrap-required { display: initial; }
  .container { width: min(calc(100% - 30px), var(--content-w)); }
  .desktop-nav { display: none; }
  .menu-button {
    display: block;
    /* Keep the touch target clear of iOS' right-edge scroll indicator. */
    margin-right: 10px;
  }
  .site-header, .site-header *,
  .page-chrome, .page-chrome *,
  .mobile-overlay, .mobile-overlay * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  .brand-link { gap: 6px; }
  .header-character, .brand-logo, .custom-logo { height: 30px; }
  .brand-logo, .custom-logo { max-width: 190px; }

  .home-hero-grid { grid-template-columns: minmax(0, 1fr) clamp(144px, 40vw, 184px); gap: 8px; align-items: center; min-height: 0; padding-block: clamp(40px, 6svh, 58px); }
  .studio-name-logo { width: min(100%, 220px); }
  .home-update-panel--hero { display: flex; height: 72px; min-height: 72px; padding: 6px 10px; margin-top: 12px; }
  .home-update-panel--hero h2 { margin-bottom: 2px; font-size: 10px; line-height: 1.2; }
  .home-update-panel--hero .home-update-list { --update-list-fade: 5px; min-height: 0; }
  .home-update-panel--hero .home-update-row { grid-template-columns: 60px minmax(0, 1fr); gap: 6px; min-height: 15px; padding: 0; font-size: 9px; line-height: 1.1; }
  .hero-character { justify-self: end; width: 100%; max-height: 230px; object-fit: contain; }

  .home-links-section { padding: 34px 0 40px; }
  .home-links-grid { gap: 10px; }
  .home-link-card { min-height: 126px; padding: 18px 38px 18px 17px; border-radius: 14px; }
  .home-link-label { font-size: clamp(18px, 5.5vw, 24px); letter-spacing: .035em; }
  .home-link-description { margin-top: 7px; font-size: 12px; letter-spacing: .04em; }
  .home-link-arrow { right: 12px; bottom: 12px; width: 28px; height: 28px; font-size: 17px; }
  .news-section { padding: 58px 0 84px; }
  .news-item { grid-template-columns: 1fr; gap: 3px; }
  .section-title { font-size: 30px; }

  .page-chrome { margin-bottom: 0; border-bottom: 1px solid var(--line); }
  .page-hero { align-items: center; }
  .page-hero .container { display: block; }
  .page-description { display: none; }
  .local-nav {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    height: var(--local-nav-h);
    padding: 6px 15px;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-top: 1px solid rgba(230, 224, 213, .65);
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
  .local-nav a { height: 37px; padding-inline: 13px; font-size: 11px; }
  .page-local-recruit .scroll-nav-track a { padding-inline: 14px; font-size: 11px; }

  .works-local-nav { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px; height: 58px; padding-block: 6px; overflow: hidden; }
  .works-local-nav .material-link { align-self: center; height: 36px; padding-inline: 11px; border-right: 1px solid var(--line); border-radius: 10px; }
  .scroll-nav-row { height: 44px; grid-template-columns: 28px minmax(0, 1fr) 28px; }
  .scroll-nav-button { width: 28px; height: 44px; font-size: 20px; }
  .scroll-nav-shell, .scroll-nav-track { height: 44px; }
  .scroll-nav-track { padding-inline: calc(50% - 28px); }
  .scroll-nav-track a { height: 36px; padding-inline: 11px; font-size: 11px; }
  .scroll-nav-shell::before, .scroll-nav-shell::after { width: 26px; }

  .content-section { padding: 30px 0 88px; }
  .works-content-section { padding-top: 28px; }
  .works-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; width: 100%; margin-inline: auto; }
  .work-card-media { border-radius: 11px; }
  .work-card-copy { padding: 10px 1px 0; }
  .work-card-meta { flex-wrap: wrap; gap: .35em .65em; margin-bottom: 4px; font-size: 10px; line-height: 1.3; }
  .work-card-title { font-size: clamp(14px, 4vw, 17px); line-height: 1.4; }
  .work-card-role { margin-top: 4px; font-size: 10px; line-height: 1.45; }
  .work-lightbox { padding: 16px; }
  .work-lightbox-dialog { max-width: 94vw; max-height: 86vh; }
  .work-lightbox-dialog img { max-height: 86vh; }
  .work-lightbox-close { top: -12px; right: -8px; width: 38px; height: 38px; font-size: 25px; }

  .job-section { padding: 31px 0; }
  .job-section h2 { margin-bottom: 20px; font-size: 26px; }
  .recruit-current-row { grid-template-columns: 1fr; }
  .recruit-current-row h3 { padding: 13px 16px 4px; background: var(--cream); }
  .recruit-current-row p { gap: 7px 14px; padding: 7px 16px 15px; background: var(--cream); }
  .recruit-floating-apply { right: 12px; bottom: calc(var(--footer-h) + 12px + env(safe-area-inset-bottom, 0px)); min-height: 42px; padding-inline: 17px; font-size: 12px; }
  .definition { grid-template-columns: 1fr; }
  .definition dt { padding: 16px 10px 3px; border-bottom: 0; }
  .definition dd { padding: 3px 10px 16px; }
  .apply-box { align-items: flex-start; flex-direction: column; }
  .apply-box.job-section { padding: 26px 22px; }

  .business-groups, .maps { grid-template-columns: 1fr; }
  .company-table th, .company-table td { display: block; width: 100%; }
  .company-table th { padding-bottom: 2px; border-bottom: 0; }
  .company-table td { padding-top: 2px; }
  .contact-box { padding: 28px 20px; }
  .privacy { font-size: 13px; line-height: 1.9; }
  .privacy-policy-content { gap: 18px; }
  .privacy-policy-content .privacy-lead { padding-bottom: 22px; font-size: 14px; line-height: 1.85; }
  .privacy-exceptions { padding-left: 0; }
  .footer-company { display: none; }
}

@media (max-width: 430px) {
  .footer-inner { gap: 14px; }
  .slim-footer { font-size: 9px; }
}

@media (max-width: 380px) {
  .home-hero-grid { grid-template-columns: minmax(0, 1fr) 128px; padding-block: 32px; }
  .home-link-card { min-height: 118px; padding-left: 14px; }
  .home-link-label { font-size: 18px; }
  .works-local-nav { padding-inline: 10px; }
  .works-local-nav .material-link { padding-inline: 8px; }
}

/* Give footer links a larger touch area only when launched as an installed web app. */
:root.is-web-app { --footer-h: 60px; }
@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
  :root { --footer-h: 60px; }
}
@media (max-width: 760px) {
  :root.is-web-app { --footer-h: 69px; }
}
@media (max-width: 760px) and (display-mode: standalone),
       (max-width: 760px) and (display-mode: fullscreen),
       (max-width: 760px) and (display-mode: minimal-ui) {
  :root { --footer-h: 69px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .page-chrome.is-compact .page-title { color: var(--ink); background: none; -webkit-text-fill-color: currentColor; animation: none; }
}
