:root {
  --ink: #111;
  --red: #bf2c2a; /* corp_logo のブランド赤 */
  --gray: #eee;
  --line: 1px solid var(--ink);
  --font-display: "Avenir LT Pro", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --font-ja: "Avenir LT Pro", "Avenir Next", Avenir, "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

/*
  Avenir LT Pro をwebフォント配信する場合は、ライセンス確認のうえ
  woff2 を assets/fonts/ に置いて以下を有効化する（未配置ならmacOS/iOSは
  ローカルのAvenir系、その他環境はNoto Sans JP等へフォールバック）。
@font-face {
  font-family: "Avenir LT Pro";
  src: url("assets/fonts/AvenirLTPro-Heavy.woff2") format("woff2");
  font-weight: 700 900; font-display: swap;
}
@font-face {
  font-family: "Avenir LT Pro";
  src: url("assets/fonts/AvenirLTPro-Medium.woff2") format("woff2");
  font-weight: 400 600; font-display: swap;
}
*/

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; background: #fff; color: var(--ink); font-family: var(--font-ja); font-size: 15px; font-weight: 400; line-height: 1.75; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }

.site-header { position: absolute; z-index: 10; top: 0; left: 0; display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 24px 38px; color: #fff; }
.brand, .global-nav { font-family: var(--font-display); font-weight: 700; }
.brand-logo { display: block; height: 15px; aspect-ratio: 857.28 / 98.12; width: auto; }
.global-nav { display: flex; align-items: center; font-size: 10px; letter-spacing: .2em; }
.global-nav a { position: relative; padding: 5px 8px; }
.global-nav a::after { position: absolute; right: 8px; bottom: 0; left: 8px; height: 1px; background: var(--red); content: ""; transform: scaleX(0); transition: transform .2s ease; }
.global-nav a:hover::after, .global-nav a:focus-visible::after { transform: scaleX(1); }
.global-nav span { opacity: .7; }

.side-label { position: fixed; z-index: 20; top: 50%; color: #111; font-family: var(--font-display); font-size: 8px; font-weight: 700; letter-spacing: .28em; mix-blend-mode: difference; pointer-events: none; writing-mode: vertical-rl; }
.side-label-left { left: 11px; transform: translateY(-50%) rotate(180deg); }
.side-label-right { right: 11px; transform: translateY(-50%); }

.hero { position: relative; min-height: 100svh; overflow: hidden; color: #fff; }
.hero-background, .hero-shade { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.hero-shade { background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.04) 48%, rgba(0,0,0,.55)); }
.hero-product { position: absolute; top: 13%; left: 50%; width: min(48vw, 610px); aspect-ratio: 1; object-fit: cover; transform: translateX(-50%); box-shadow: 0 20px 70px rgba(0,0,0,.2); }
.hero-copy { position: absolute; z-index: 2; top: 22%; left: 7.5%; max-width: 12em; padding-bottom: 10px; border-bottom: 1px solid #fff; font-size: clamp(13px, 1.2vw, 17px); font-weight: 700; line-height: 2; letter-spacing: .06em; writing-mode: vertical-rl; }
.hero-sub { position: absolute; z-index: 2; bottom: calc(78px + 11.5vw); left: 4%; font-size: 10px; font-weight: 500; letter-spacing: .08em; line-height: 1.9; }
.scroll-cue { position: absolute; z-index: 2; right: 3.5%; bottom: calc(78px + 11.5vw); font-family: var(--font-display); font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.hero-lockup { position: absolute; z-index: 2; right: 0; bottom: 20px; left: 0; text-align: center; }
.wordmark { width: 100%; }
.wordmark svg { display: block; width: 96%; height: auto; margin: 0 auto; }
.hero-lockup > p { margin-top: 18px; font-size: 10px; font-weight: 500; letter-spacing: .3em; }

.section { padding: 100px max(4vw, 38px); scroll-margin-top: 20px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; padding-top: 16px; border-top: var(--line); margin-bottom: 52px; }
.section-en { margin-bottom: 5px; font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: .22em; }
.section-head h2 { font-size: clamp(22px, 2.4vw, 36px); font-weight: 700; letter-spacing: .01em; line-height: 1.3; }
.target-icon { font-family: Arial, sans-serif; font-size: 18px; line-height: 1; }
.games-logo { width: auto; height: clamp(72px, 8vw, 108px); }

.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: var(--line); }
.work-card { min-width: 0; padding: 0 clamp(14px, 2vw, 30px) 10px; border-right: var(--line); }
.card-head { display: flex; min-height: 98px; align-items: flex-start; justify-content: space-between; padding-top: 14px; border-top: var(--line); }
.card-head h3 { font-size: clamp(14px, 1.4vw, 20px); font-weight: 700; line-height: 1.45; }
.card-head h3 small { display: block; font-size: 10px; font-weight: 500; }
.card-head p { margin-top: 5px; font-size: 10px; }
.card-head > span { font-size: 14px; }
.work-visual { position: relative; overflow: hidden; background: var(--gray); aspect-ratio: 3 / 4; }
.work-visual img { height: 100%; object-fit: cover; transition: transform .45s ease; }
.work-card:hover .work-visual img { transform: scale(1.015); }
.badge { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 5px 9px; color: #fff; font-family: var(--font-display); font-size: 8px; font-weight: 700; letter-spacing: .12em; line-height: 1; }
.badge-red { background: var(--red); }
.badge-black { background: #111; }
.badge-gray { background: #777; }
.spec-meter { padding: 16px 0 12px; border-bottom: var(--line); }
.spec-meter > div { display: grid; grid-template-columns: 42px 1fr; align-items: center; font-size: 9px; line-height: 1.65; }
.spec-meter dd { font-family: var(--font-display); font-size: 10px; letter-spacing: .12em; }
.work-desc { min-height: 6.5em; padding-top: 15px; font-size: 12px; }
.work-note { font-family: var(--font-display); font-size: 8px; font-weight: 700; letter-spacing: .16em; }

.activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 68px 3vw; }
.activity-card { padding-top: 15px; border-top: var(--line); }
.activity-card:nth-child(3) { grid-column: 1 / -1; width: calc(50% - 1.5vw); margin-left: auto; }
.activity-card h3 { min-height: 58px; font-size: clamp(17px, 1.65vw, 24px); font-weight: 700; line-height: 1.45; }
.activity-card img { aspect-ratio: 16 / 9; object-fit: cover; background: var(--gray); }
.activity-card p { max-width: 42em; margin-top: 20px; font-size: 12px; line-height: 2; }

.member-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3vw; }
.member-card { padding-top: 14px; border-top: var(--line); }
.member-card img { aspect-ratio: 1; object-fit: cover; background: var(--gray); }
.member-card h3 { margin-top: 20px; font-size: 17px; font-weight: 700; }
.member-role { margin-top: 3px; font-size: 10px; font-weight: 500; }
.member-bio { margin-top: 16px; font-size: 12px; line-height: 2; }

.news-list { border-top: var(--line); list-style: none; }
.news-list li { display: grid; grid-template-columns: 130px 1fr auto; gap: 20px; align-items: center; padding: 22px 4px; border-bottom: var(--line); font-size: 13px; }
.news-list time { color: var(--red); font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: .15em; }

.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 8vw; }
.contact-grid h3 { margin-bottom: 24px; font-size: 18px; font-weight: 700; }
.company-table { border-top: var(--line); }
.company-table > div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 15px 4px; border-bottom: var(--line); font-size: 12px; }
.company-table dt { font-weight: 700; }
.contact-lead { max-width: 32em; font-size: 12px; line-height: 2; }
.contact-mail { display: inline-block; margin-top: 34px; padding-bottom: 5px; border-bottom: var(--line); font-family: var(--font-display); font-size: clamp(14px, 1.55vw, 20px); font-weight: 600; letter-spacing: -.02em; }
.contact-mail:hover, .contact-mail:focus-visible { border-color: var(--red); }

.site-footer { overflow: hidden; padding-bottom: 22px; }
.footer-image { height: clamp(190px, 33vw, 460px); object-fit: cover; background: var(--gray); }
.footer-nav { display: grid; grid-template-columns: repeat(6, 1fr); margin: 0 max(4vw, 38px) 9vw; border-left: var(--line); }
.footer-nav a { padding: 18px 10px; border-right: var(--line); border-bottom: var(--line); font-family: var(--font-display); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-align: center; }
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--red); }
.footer-wordmark { color: #111; text-align: center; }
.copyright { margin-top: 25px; font-family: var(--font-display); font-size: 8px; font-weight: 600; letter-spacing: .18em; text-align: center; }

@media (max-width: 700px) {
  .site-header { padding: 18px 16px; }
  .brand-logo { height: 11px; }
  .games-logo { height: 60px; }
  .global-nav { gap: 3px; font-size: 7px; letter-spacing: .08em; }
  .global-nav a { padding-inline: 2px; }
  .global-nav a::after { right: 2px; left: 2px; }
  .side-label { display: none; }
  .hero { min-height: 760px; }
  .hero-product { top: 18%; width: 72vw; }
  .hero-copy { top: 12%; left: 16px; font-size: 11px; writing-mode: horizontal-tb; }
  .hero-sub { bottom: 18%; left: 16px; max-width: 64%; font-size: 8px; }
  .scroll-cue { right: 16px; bottom: 18%; font-size: 7px; }
  .hero-lockup { bottom: 18px; }
  .hero-lockup > p { margin-top: 12px; font-size: 8px; }
  .wordmark svg { width: 94%; }
  .section { padding: 72px 16px; }
  .section-head { margin-bottom: 36px; }
  .works-grid, .member-grid { grid-template-columns: 1fr; border-left: 0; gap: 56px; }
  .work-card { padding: 0; border-right: 0; }
  .card-head { min-height: 88px; }
  .work-desc { min-height: 0; }
  .activity-grid { grid-template-columns: 1fr; gap: 50px; }
  .activity-card:nth-child(3) { grid-column: auto; width: auto; margin-left: 0; }
  .activity-card h3 { min-height: 50px; }
  .news-list li { grid-template-columns: 94px 1fr auto; gap: 10px; padding: 18px 0; font-size: 11px; }
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .company-table > div { grid-template-columns: 82px 1fr; gap: 12px; }
  .footer-image { height: 220px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); margin: 0 16px 80px; }
}

@media (max-width: 390px) {
  .global-nav span { display: none; }
  .global-nav a { font-size: 6px; }
  .hero { min-height: 700px; }
  .news-list li { grid-template-columns: 1fr auto; }
  .news-list time { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------------- アニメーション（script.jsが .js-anim を付けた時だけ有効） ---------------- */

/* スクロールリビール: 静かなフェードアップ */
.js-anim .section-head,
.js-anim .work-card,
.js-anim .activity-card,
.js-anim .member-card,
.js-anim .news-list li,
.js-anim .contact-grid > div,
.js-anim .footer-image,
.js-anim .footer-nav,
.js-anim .footer-wordmark {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
.js-anim .is-visible { opacity: 1; transform: none; }

/* ヒーロー登場: 背景→写真→コピー→ワードマークの順に静かに立ち上がる */
.js-anim .hero-product,
.js-anim .hero-copy,
.js-anim .hero-sub,
.js-anim .scroll-cue,
.js-anim .hero-lockup,
.js-anim .site-header {
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(.22, 1, .36, 1), transform 1.1s cubic-bezier(.22, 1, .36, 1);
}
.js-anim .hero-product { transform: translateX(-50%) scale(.985); transition-delay: .15s; }
.js-anim .hero-copy { transform: translateY(10px); transition-delay: .5s; }
.js-anim .hero-sub { transform: translateY(10px); transition-delay: .65s; }
.js-anim .scroll-cue { transition-delay: .8s; }
.js-anim .hero-lockup { transform: translateY(14px); transition-delay: .35s; }
.js-anim .site-header { transition-delay: .9s; }
.js-anim.hero-in .hero-product { opacity: 1; transform: translateX(-50%) scale(1); }
.js-anim.hero-in .hero-copy,
.js-anim.hero-in .hero-sub,
.js-anim.hero-in .scroll-cue,
.js-anim.hero-in .hero-lockup,
.js-anim.hero-in .site-header { opacity: 1; transform: none; }

/* SCROLL DOWN の矢印だけ、ごく控えめに上下 */
.js-anim .scroll-cue { animation: none; }
.js-anim.hero-in .scroll-cue { animation: cue-drift 2.6s ease-in-out 2s infinite; }
@keyframes cue-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ---------------- プロダクト個別ページ ---------------- */

.product-page { background: #fff; }
.product-header { position: static; color: var(--ink); border-bottom: var(--line); }
.product-main { max-width: 1080px; margin: 0 auto; padding: 40px max(4vw, 24px) 60px; }

.breadcrumb { font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: .14em; margin-bottom: 34px; }
.breadcrumb a { border-bottom: 1px solid currentColor; }
.breadcrumb a:hover { color: var(--red); }

.product-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4.5vw, 64px); align-items: start; }
.product-hero-visual { background: var(--gray); border: var(--line); }
.product-hero-visual img { width: 100%; height: auto; }

.product-hero-info { padding-top: 6px; }
.product-title { margin-top: 10px; font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; line-height: 1.25; }
.product-title-ja { display: block; font-size: 13px; font-weight: 500; letter-spacing: .2em; margin-top: 4px; }
.product-catch { margin-top: 18px; font-size: clamp(17px, 1.8vw, 22px); font-weight: 700; padding-bottom: 12px; border-bottom: var(--line); }
.product-desc { margin-top: 18px; font-size: 13px; line-height: 2.1; }
.product-desc-en { margin-top: 10px; font-size: 10.5px; line-height: 1.9; opacity: .6; }

.product-spec { margin-top: 28px; border-top: var(--line); }
.product-spec > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 10px 2px; border-bottom: var(--line); font-size: 13px; }
.product-spec dt { font-weight: 700; }

.product-credit { margin-top: 20px; }
.product-credit > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; font-size: 11px; padding: 2px; }
.product-credit dt { font-weight: 700; opacity: .7; }
.product-note { margin-top: 14px; font-family: var(--font-display); font-size: 9px; letter-spacing: .1em; opacity: .55; }

.product-package { max-width: none; padding-inline: 0; }
.package-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.package-grid figure { margin: 0; }
.package-grid img { width: 100%; height: auto; background: var(--gray); border: var(--line); }
.package-grid figcaption { margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .1em; }

.product-backlink { margin-top: 20px; }
.product-backlink a { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .12em; border-bottom: 1px solid currentColor; }
.product-backlink a:hover { color: var(--red); }

.product-footer { border-top: var(--line); margin-top: 70px; padding-top: 40px; }

@media (max-width: 700px) {
  .product-hero { grid-template-columns: 1fr; }
  .package-grid { grid-template-columns: 1fr; }
  .product-spec > div, .product-credit > div { grid-template-columns: 90px 1fr; }
}

/* 作品カードのリンク化 */
.work-link { display: block; color: inherit; }
.work-link:hover .card-head > span { color: var(--red); }
