/* BOARDSTYLE — Studio版の色・書体・余白を引き継ぐ独立したスタイル */
:root {
  --color-primary: #6699cc;
  --color-text: #484848;
  --font-body: "Lato", sans-serif;
  --font-heading: "Noto Sans JP", sans-serif;
  --font-brand: "Michroma", sans-serif;
  --content-width: 800px;
  --header-height: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
/* Studio版と同じ描画設定。Latoにない日本語はブラウザー標準のsans-serifへ委ねる。 */
body { margin: 0; background: #fff; color: var(--color-text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #244f79; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 12px 20px; background: white; color: #244f79; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header { position: fixed; top: 0; left: 0; z-index: 5; width: 100%; padding: 10px 40px; background: var(--color-primary); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1280px; margin: auto; min-height: 44px; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; color: white; font-family: var(--font-brand); }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: .03em; line-height: 1; }
.brand-tagline { font-size: 10px; letter-spacing: .08em; line-height: 1.4; }
.desktop-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0 8px; margin-left: auto; }
.desktop-nav a { padding: 4px 12px; border-radius: 6px; color: white; font-family: var(--font-heading); font-size: 16px; line-height: 1.75; transition: color .2s, background .2s; }
.desktop-nav a:hover { background: white; color: var(--color-primary); }
.contact-link { display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 3px 24px; border: 1px solid white; border-radius: 6px; background: white; color: var(--color-primary); font-family: var(--font-heading); font-size: 12px; font-weight: 600; font-feature-settings: "palt" 1; line-height: 1.75; white-space: nowrap; transition: background .2s, color .2s; }
.contact-link:hover { background: transparent; color: white; }
.menu-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 8px; border: 0; background: transparent; }
.menu-toggle span { height: 2px; width: 24px; background: white; }
.mobile-menu { position: fixed; inset: 0 0 auto auto; width: max-content; max-width: 100%; max-height: 100dvh; overflow: auto; margin: 0; padding: 12px 40px 12px 12px; border: 0; background: var(--color-primary); color: white; }
.mobile-menu::backdrop { background: rgba(0, 0, 0, .16); }
.mobile-menu nav { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.mobile-menu nav a { font-family: var(--font-heading); font-size: 20px; line-height: 1.4; }
.mobile-menu nav a:hover { text-decoration: underline; }
.menu-close { position: absolute; top: 0; right: 0; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; color: white; font-size: 30px; line-height: 1; }
body.menu-open { overflow: hidden; }
.hero { position: relative; display: flex; align-items: center; justify-content: center; min-height: 100dvh; overflow: hidden; background: #eee; color: white; }
.hero-slides, .hero-shade, .hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide { object-fit: cover; object-position: center; opacity: 0; transition: opacity 600ms ease-in-out; }
.hero-slide.is-active { opacity: 1; }
.hero-shade { background: rgba(0, 0, 0, .4); }
.hero-content { position: relative; display: flex; align-items: flex-start; justify-content: center; gap: 32px; width: 100%; padding: calc(var(--header-height) + 40px) 32px 60px; font-family: var(--font-heading); animation: hero-appear 2s ease-in-out; }
.hero-content h1 { flex-shrink: 0; font-size: 52px; font-weight: 600; line-height: 1.4; }
.hero-content p { width: 40%; font-size: 16px; font-weight: 400; line-height: 1.8; }
.slideshow-toggle { position: absolute; right: 20px; bottom: 20px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.65); border-radius: 4px; background: rgba(0,0,0,.25); color: white; font-size: 12px; }
.slideshow-toggle:hover { background: rgba(0,0,0,.5); }
.content-section { width: min(var(--content-width), calc(100% - 32px)); margin: 64px auto 0; }
.first-section { margin-top: 32px; }
.section-heading { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 20px; }
.section-label { color: #666; font-family: "Roboto", sans-serif; font-size: 12px; line-height: 1.4; }
h2 { color: #222; font-family: var(--font-heading); font-size: 40px; font-weight: 700; font-feature-settings: "palt" 1; line-height: 1.4; text-align: center; }
h3 { padding-bottom: 4px; margin: 16px 0 8px; border-bottom: 1px solid var(--color-primary); color: #000; font-family: var(--font-heading); font-size: 20px; font-weight: 400; line-height: 1.4; }
.body-copy { font-size: 15px; font-weight: 400; line-height: 1.75; overflow-wrap: break-word; }
.channel-link { margin: 0 0 10px; color: var(--color-primary); font-size: 20px; line-height: 1.4; text-align: center; text-decoration: underline; }
.youtube-video { display: block; width: min(480px, 100%); height: auto; aspect-ratio: 16 / 9; margin: 20px auto 0; border: 0; }
.company-row { display: flex; align-items: center; gap: 4px; padding: 32px 0; border-bottom: 1px solid var(--color-primary); }
.company-row dt { flex: 0 0 108px; color: var(--color-primary); font-family: var(--font-heading); font-size: 12px; line-height: 1.4; }
.company-row dd { flex: 1; min-width: 0; color: #222; font-size: 15px; font-weight: 700; font-feature-settings: "palt" 1; line-height: 1.75; overflow-wrap: anywhere; }
.signature { margin-top: 8px; color: #333; font-family: var(--font-heading); font-size: 16px; line-height: 1.4; text-align: right; }
.back-to-top { display: flex; justify-content: center; margin-top: 40px; }
.back-to-top a { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 24px; border: 1px solid var(--color-primary); border-radius: 6px; color: var(--color-primary); font-size: 15px; font-weight: 700; font-feature-settings: "palt" 1; line-height: 1.2; transition: color .2s, background .2s; }
.back-to-top a:hover { background: var(--color-primary); color: white; }
.back-to-top span { flex: 1; }
.back-to-top svg { display: block; flex-shrink: 0; width: 20px; height: 20px; fill: currentColor; }
.site-footer { padding: 60px 40px 24px; margin-top: 40px; background: var(--color-primary); color: white; }
.footer-inner { max-width: 1280px; margin: auto; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-bottom: 24px; border-bottom: 1px solid white; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.footer-nav a { padding: 4px 12px; font-family: var(--font-heading); font-size: 15px; font-weight: 700; line-height: 1.75; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 8px; }
.copyright { margin-top: 24px; font-family: var(--font-heading); font-size: 12px; line-height: 1.4; text-align: center; }
@keyframes hero-appear { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (max-width: 1100px) {
  .header-inner { gap: 16px; }
  .desktop-nav a { padding-inline: 8px; font-size: 14px; }
}
@media (max-width: 900px) {
  .desktop-nav { gap: 0; }
  .desktop-nav a { padding-inline: 6px; font-size: 13px; }
}
@media (max-width: 768px) {
  :root { --header-height: 76px; }
  .site-header { padding: 16px 32px; }
  .desktop-nav { flex-wrap: wrap; }
  .desktop-nav a { font-size: 12px; padding: 4px 6px; }
  .contact-link { display: none; }
  .menu-toggle { display: flex; }
  /* JSなしの場合はヘッダーのリンクを残す。 */
  .menu-ready .desktop-nav { display: none; }
  .menu-toggle { margin-left: auto; flex-shrink: 0; }
  .hero-content { flex-direction: column; align-items: center; width: 80%; padding-inline: 0; gap: 32px; }
  .hero-content p { width: 100%; }
  h2 { font-size: 48px; }
  .site-footer { padding: 64px 32px 24px; }
  .footer-main { flex-direction: column; align-items: flex-start; }
  .footer-nav { justify-content: flex-start; }
  .copyright { text-align: left; }
}
@media (max-width: 480px) {
  :root { --header-height: 68px; }
  .site-header { position: sticky; padding: 12px 16px; }
  .header-inner { gap: 12px; }
  .brand-name { font-size: 20px; }
  .desktop-nav { justify-content: flex-start; }
  .hero { align-items: flex-start; min-height: 100dvh; }
  .hero-content { width: 90%; padding: 40px 16px 64px; }
  .hero-content h1 { align-self: flex-start; font-size: clamp(32px, 10vw, 46px); }
  .hero-content p { font-size: 16px; }
  h2 { font-size: 32px; }
  .section-label { font-size: 11px; }
  .body-copy { font-size: 14px; }
  .back-to-top a { font-size: 14px; }
  .company-row { padding: 24px 0; }
  .company-row dt { flex-basis: 64px; font-size: 11px; }
  .company-row dd { font-size: 14px; }
  .site-footer { padding: 48px 16px 24px; }
  .footer-nav a { padding-inline: 8px; font-size: 14px; }
  .copyright { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 作品紹介の追加。既存の本文とボタンのスタイルは保持する。 */
.game-feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; padding: 32px; border: 1px solid #dce3ed; border-radius: 12px; background: #f6f9fd; }
.game-feature img { width: 100%; height: auto; }
.game-feature p { font-size: 15px; line-height: 1.8; }
.game-feature .game-feature-tagline { margin-bottom: 12px; font-size: 22px; font-weight: 700; }
.game-feature .game-feature-specs { margin-top: 12px; font-size: 12px; }
.game-feature span { display: block; margin-top: 20px; color: #235ea5; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
.game-feature:hover { border-color: #6699cc; }
@media (max-width: 1000px) {
 .menu-ready .desktop-nav { display: none; }
 .menu-ready .contact-link { display: none; }
 .menu-toggle { display: flex; margin-left: auto; flex-shrink: 0; }
}
@media (max-width: 600px) { .game-feature { grid-template-columns: 1fr; gap: 24px; padding: 24px; } .game-feature img { max-width: 320px; margin: auto; } }
.tactical-feature { margin-bottom: 24px; background: #f7f5f0; }
