/* Shared company navigation, including the editorial and game pages. */
:root {
  --corp-ink: #252638;
  --corp-muted: #57596e;
  --corp-accent: #5d52ae;
  --corp-pale: #f5f5fc;
  --corp-rule: #e5e4ef;
  --gutter: clamp(20px, 4vw, 56px);
  --corp-font: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
.site-head, .site-foot, .corp {
  font-family: var(--corp-font);
  color: var(--corp-ink);
  text-align: left;
}
.site-head *, .site-foot *, .corp * { box-sizing: border-box; }
.site-head { position: relative; z-index: 1; width: 100%; background: #fff; }
.site-head-inner, .site-foot .site-foot-inner, .corp-width {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.site-head-inner { min-height: 76px; display: flex; justify-content: space-between; align-items: stretch; gap: 16px; }
.site-head .site-brand { align-self: center; }
.home-page .site-head { position: sticky; top: 0; z-index: 5; }
.content-logo-visible .site-head .site-brand { visibility: hidden; }
.site-brand, .site-brand img { display: block; }
.site-brand img { width: clamp(158px,18vw,215px); height: auto; }
.site-head nav { display: flex; align-items: stretch; }
.site-head nav a, .site-foot nav a, .site-legal a {
  color: var(--corp-ink); text-decoration: none; font-weight: 650; font-size: 14px; line-height: 1.5;
}
.site-head nav a { display: grid; place-items: center; padding-inline: clamp(14px, 2.4vw, 32px); text-align: center; transition: background .16s, color .16s; }
.site-head nav a[aria-current] { color: var(--corp-accent); background: #f7f6fc; }
.site-head nav .nav-contact { color: #514891; background: #edeaf8; }
.site-head nav a:is(:hover,:focus-visible) { background: #e6e4f4; color: #393469; text-decoration: none; }
.site-head nav .nav-contact:is(:hover,:focus-visible) { background: #5d52ae; color: #fff; }
.site-foot a:hover { color: var(--corp-accent); text-decoration: underline; }
.site-foot { background: white; padding: 42px 0; line-height: 1.6; }
.site-foot .site-foot-inner { display: grid; gap: 21px; text-align: left; }
.site-foot nav, .site-legal { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.site-foot .site-legal { padding-top: 16px; border-top: 1px solid var(--corp-rule); }
.site-foot .site-legal a, .site-foot small { font-size: 12px; color: var(--corp-muted); font-weight: 400; }
.site-head :focus-visible, .site-foot :focus-visible, .corp :focus-visible { outline: 3px solid #705fce; outline-offset: 4px; }

body.corp { margin: 0; background: white; font-size: 16px; line-height: 1.85; }
.corp h1, .corp h2, .corp h3 { margin: 0; line-height: 1.5; font-weight: 700; text-wrap: pretty; }
.corp p { margin: 0 0 .85em; }
.corp a { text-underline-offset: .2em; }
.corp .corp-button, .corp .corp-link, .corp .contact-choice {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1em;
  color: var(--corp-accent); font-weight: 700; text-decoration: none;
}
.corp .corp-button { padding: 12px 20px; border-radius: 7px; color: white; background: var(--corp-accent); }
.action-list { margin: .7em 0; padding-inline-start: 1.5em; }
.action-list:has(.corp-button), .contact-choices, .section-actions { list-style: none; padding: 0; }
.contact-strip .action-list { margin: 0; }
.link-note { display: block; color: var(--corp-muted); font-size: .85em; }
.action-list li::marker { color: var(--corp-accent); }
.corp .corp-button:hover { background: #484080; }
.corp .corp-link:hover, .corp .contact-choice:hover { text-decoration: underline; }
.corp-link { font-size: .94rem; }
.company-hero { text-align: center; background: white; }
.company-hero .corp-width { display: grid; justify-items: center; gap: 26px; padding-block: clamp(52px,7vw,100px); }
.company-hero h1 { width: min(580px,90%); }
.company-hero h1 img { display: block; width: 100%; height: auto; }
.company-hero p { margin: 0; color: var(--corp-muted); font-size: clamp(1rem,1.6vw,1.25rem); }
.corp [hidden] { display: none !important; }
.corp-section { padding: clamp(44px,5vw,74px) 0; }
.corp-section.pale, .inner-page .case-list .case:nth-child(odd) { background: var(--corp-pale); }
.corp-section h2, .inner-page h2 { font-size: clamp(24px,2.4vw,36px); letter-spacing: -.045em; margin: 0 0 24px; }
.case h3, .inner-page h3 { font-size: clamp(18px,1.45vw,23px); }
.contact-strip { margin-top: 28px; padding: 22px clamp(18px,3vw,36px); display: flex; justify-content: space-between; align-items: center; gap: 14px; background: #f1eff9; border-radius: 10px; }
.contact-strip p { margin: 0; font-weight: 600; }
.case { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.55fr); gap: clamp(18px,5vw,68px); padding: clamp(20px,3vw,40px); border-radius: 12px; background: white; }
.corp-section:not(.pale) .case, .case-list .case { background: #fafafd; }
.case-info img { object-fit: contain; border-radius: 11px; margin-bottom: 10px; background: white; }
.case-info p { margin: 8px 0 0; color: var(--corp-muted); font-size: .92rem; }
.case-info :is(h2, h3) { font-size: clamp(19px,2vw,29px); }
.case-body p { line-height: 1.75; }
.case-gallery { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.case-gallery a { flex: 1 1 25%; display: grid; }
.case-gallery img { width: 100%; height: auto; max-height: 250px; object-fit: contain; }
.case-gallery:has(> a:nth-child(4):last-child) { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
.case-gallery a:only-child img { object-position: left; }
.case-list { display: grid; gap: 18px; }
.carousel { --peek: clamp(34px,8%,92px); --case-gap: clamp(8px,1.4vw,18px); }
.carousel-window { position: relative; overflow: hidden; }
.carousel.is-ready .carousel-window { touch-action: pan-y pinch-zoom; }
.carousel.is-ready .carousel-slides { display: grid; margin-inline: var(--peek); }
.carousel.is-ready .case { border: 1px solid var(--corp-rule); grid-area: 1 / 1; min-width: 0; align-content: start; transform: translateX(calc(var(--offset) * (100% + var(--case-gap)))); }
.carousel .case-info img { display: block; }
.carousel.is-ready .case[inert] { opacity: .56; }
.carousel-edge { position: absolute; inset-block: 0; width: var(--peek); border: 0; padding: 0; background: transparent; cursor: pointer; }
.carousel-edge::after { display: grid; place-items: center; width: 100%; height: 100%; color: #42377f; background: #ffffff59; font-size: clamp(22px,3vw,38px); opacity: 0; transition: opacity .15s; }
.carousel-edge.previous { left: 0; --nudge: -4px; }
.carousel-edge.previous::after { content: "◀"; }
.carousel-edge.next::after { content: "▶"; }
.carousel-edge.next { --nudge: 4px; }
.carousel-edge:focus-visible::after { opacity: .68; }
@media (hover: hover) {
  .carousel-edge:hover::after { opacity: .68; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .carousel-edge:hover::after { animation: edge-hint .8s ease-in-out infinite alternate; }
}
@keyframes edge-hint { to { transform: translateX(var(--nudge)); } }
.carousel-edge.next { right: 0; }
.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 2px; }
.carousel-controls button { display: grid; place-items: center; width: 32px; height: 44px; border: 0; padding: 0; background: transparent; cursor: pointer; }
.carousel-controls button::before { content: ""; width: 9px; height: 9px; border-radius: 12px; background: #aaa7bf; }
.carousel-controls button[aria-current=true] { width: 46px; }
.carousel-controls button[aria-current=true]::before { width: 36px; background: var(--corp-accent); }
.carousel-controls button:hover::before { background: #756ab4; }
.carousel-list-link { width: fit-content; max-width: 100%; margin-inline: auto; font-size: .96rem; }
.section-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.section-actions li:last-child { margin-inline-start: auto; }
.case-body a, .case-info :is(h2, h3) a { color: var(--corp-accent); }
.case-lightbox { width: min(95vw,1100px); padding: 16px; border: 0; text-align: right; }
.case-lightbox::backdrop { background: #242334bf; }
.case-lightbox button { margin-bottom: 8px; padding: 7px 18px; cursor: pointer; }
.case-lightbox img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; }
.quiz-video { width: 100%; height: auto; aspect-ratio: 16/9; border: 0; }
.favorite-games { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.favorite-games a { display: block; color: var(--corp-ink); text-decoration: none; font-size: .84rem; line-height: 1.5; font-weight: 600; }
.favorite-games img { display: block; width: min(100%, 86px); height: auto; border-radius: 8px; margin-bottom: 6px; }
.questions { display: grid; gap: 6px; }
.questions details { background: #fafafd; border: 1px solid #e1e1e9; }
.pale .questions details { background: #fff; }
.questions summary, .faq-category > summary { display: flex; align-items: baseline; gap: .85em; cursor: pointer; list-style: none; }
.questions summary { padding: 17px clamp(14px,2vw,26px); font-size: clamp(1.08rem,1.55vw,1.3rem); font-weight: 650; line-height: 1.6; }
.questions summary:hover, .faq-category > summary:hover { color: #413874; background: #f1f0f7; }
.questions summary::-webkit-details-marker, .faq-category > summary::-webkit-details-marker { display: none; }
.questions summary::before, .faq-category > summary::before { content: "+"; flex: none; width: .9em; color: var(--corp-accent); font: 1.15em/1 sans-serif; }
.questions details[open] > summary::before, .faq-category[open] > summary::before { content: "−"; }
.questions details p { margin: 0; padding: 0 clamp(16px,4vw,64px) 20px; color: #20212b; font-size: clamp(1.04rem,1.3vw,1.16rem); }
.questions p a { color: #44377e; text-decoration: underline; }
.faq-category { margin: 0 0 12px; background: white; scroll-margin-top: 10px; }
.faq-category > summary { padding: 20px; font-size: clamp(19px,2vw,25px); font-weight: 700; background: #f7f6fb; }
.faq-category .questions { padding: 12px; }
.questions + .action-list { margin-top: 18px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 28px; align-items: start; }
.profile-logo { display: block; width: min(100%,340px); height: auto; padding: 22px; border-radius: 8px; background: white; }
.representative-icon { width: min(100%, 200px); height: auto; border-radius: 8px; }
.representative h3, .representative dl + p { margin-block-start: 1.4em; }
.profile-grid.representative dl > div { grid-template-columns: 7em minmax(0,1fr); }
.profile-grid dl { margin: 0; }
.profile-grid dl > div { display: grid; grid-template-columns: 6rem 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--corp-rule); }
.profile-grid dt { font-weight: 700; }
.profile-grid dd { margin: 0; }
.company-news { margin: 0; list-style: none; padding: 0; }
.company-news li { display: flex; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--corp-rule); }
.company-news time { font-size: .9rem; color: var(--corp-muted); }
.inner-page { padding-block: 24px 70px; }
body.corp:has(.inner-page:not([hidden])) { background: #fafafe; }
.page-title h1, .inner-page > h1 { font-size: clamp(29px,4vw,49px); margin: 34px 0; }
.inner-page section { margin-block: 40px; }
.crumb { margin: 0; padding-block: 7px; background: #f0eff7; font: 14px/1.6 var(--corp-font); color: var(--corp-muted); text-align: left; }
.crumb .corp-width { box-sizing: border-box; }
.crumb-empty { min-height: calc(1.6em + 14px); }
.crumb a { color: inherit; }
.contact-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 18px 0; }
.corp .contact-choice { width: 100%; height: 100%; background: white; padding: 25px; border-radius: 8px; }
.corp .contact-notice { color: #973348; margin-top: 18px; }
.contact-frame { display: block; width: 100%; margin-top: 16px; background: white; border: 0; }

/* Static game and information pages share the same bands as the company pages. */
.site-legacy #wrap { width: 100%; margin: 0; }
.site-legacy #contents > :is(#top_message,#info_message) {
  width: 100%; padding: clamp(24px,4vw,60px) max(var(--gutter), calc((100% - 1200px)/2 + var(--gutter)));
  margin: 0; border: 0; border-radius: 0; text-align: left;
}
.site-legacy #contents > div:nth-child(even) { background: var(--corp-pale); }
.site-legacy #contents :is(h1,h2,h3) { padding: 0; margin: 0 0 .65em; border: 0; border-radius: 0; background: transparent; color: var(--corp-ink); font-weight: 700; line-height: 1.5; }
.site-legacy #contents h1 { font-size: clamp(29px,4vw,49px); }
.site-legacy #contents h2 { font-size: clamp(24px,2.4vw,36px); margin-top: 1.1em; }
.site-legacy #contents h3 { font-size: clamp(18px,1.45vw,23px); margin-top: .85em; }
.site-legacy #contents a, .games-index .game-filters a, .game-result a.game_tag { color: var(--corp-accent); }
.site-legacy .layout-container { width: 100%; max-width: none; }
.site-legacy .info_image { display: block; max-width: 100%; height: auto; }
.site-legacy .game_play_button { max-width: 480px; margin: 12px auto; }
.site-legacy #game_player { margin-inline: auto; text-align: center; }
.site-legacy .info_summary ul, .site-legacy .info_summary ol { padding-inline-start: 1.5em; }
.site-legacy .info_summary .outline-border { padding-block: .6em; border: 0 !important; border-bottom: 1px solid var(--corp-rule) !important; }
.site-legacy hr { border: 0; border-top: 1px solid var(--corp-rule); margin-block: 20px; }
.game-detail #game_player { text-align: center; }
.game-detail .game_play_button { max-width: 480px; margin: 12px auto; }
.game-detail .info_image { display: block; max-width: 100%; height: auto; }
.game-detail .game_play_button img { width: 100%; }
.game-detail .game-date { margin: 0 0 .35rem; font-size: .92rem; color: var(--corp-muted); }
.game-title-row { display: grid; grid-template-columns: minmax(0,1fr) fit-content(42%); align-items: center; gap: clamp(8px,2vw,28px); margin-bottom: 1.25rem; }
.game-title-row h1 { font-size: clamp(25px,4vw,46px); overflow-wrap: anywhere; line-height: 1.35; }
.game-tags[data-slot] { display: flex; flex-wrap: wrap; justify-content: end; gap: .3em .6em; font-size: .9rem; }
.game-detail main a:not(.game-card) { color: var(--corp-accent); }
.game-screens { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: clamp(8px,2vw,24px); }
.game-screens img { width: 100%; height: auto; }
.game-copy[data-slot] { display: block; overflow-wrap: anywhere; }
.game-copy > img, .game-copy a img { max-width: 100%; height: auto; }
.game-copy h2, .game-copy h3, .game-copy h4 { margin: 1.25em 0 .5em; }
.game-detail ul, .game-detail ol { padding-inline-start: 1.5em; }
.game-detail hr { margin-block: 1.4em; border: 0; border-top: 1px solid var(--corp-rule); }
.game-screens + .game-copy { margin-top: 1rem; }
.pageNav01 { display: flex; gap: .65em; padding: 0; flex-wrap: wrap; list-style: none; }
.pageNav01 a { color: var(--corp-accent); }
.game-grid, .games-index .game-grid[data-slot] { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,310px),1fr)); gap: 14px; }
[data-game-category] .game-grid { grid-template-columns: repeat(auto-fill,minmax(min(100%,310px),1fr)); }
.games-index .pageNav01 { display: flex; }
.game-card { display: grid; grid-template-columns: clamp(76px,8vw,110px) 1fr; align-items: start; gap: 16px; height: 100%; padding: 15px; border-radius: 10px; background: var(--corp-pale); color: var(--corp-ink); text-decoration: none; }
.pale .game-card, .game-result .game-card { background: #fff; }
.game-card:hover { background: #eae7f6; text-decoration: none; color: var(--corp-ink); }
.game-card img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 6px; }
.game-card h3 { margin: 0 0 .35em; font-size: 1.13rem; line-height: 1.45; }
.game-card-copy { min-width: 0; overflow-wrap: anywhere; }
.game-card-copy p { margin: 0; color: var(--corp-muted); font-size: .98rem; line-height: 1.6; }
.game-result { display: grid; align-content: start; background: white; }
.game-result .info_tag_list { margin: 0; padding: 0 15px 12px; font-size: .85rem; }
.game-more { margin-top: 16px; padding: .6em 1.4em; border: 1px solid #d4d0e6; border-radius: 6px; color: var(--corp-accent); background: white; font: inherit; cursor: pointer; }
.game-more:hover { background: #eae7f6; }
@media (max-width: 740px) {
  .site-head-inner { min-height: 60px; padding-inline: clamp(7px,2vw,16px); gap: 5px; }
  .site-head .site-brand img { width: clamp(78px,23vw,144px); }
  .site-head nav a { font-size: clamp(11px,2.65vw,14px); padding-inline: clamp(5px,1.25vw,12px); }
  .profile-grid, .contact-choices, .case { grid-template-columns: 1fr; }
  .case { gap: 14px; }
  .case-info img { width: 50px; height: 50px; }
  .contact-strip { flex-direction: column; align-items: start; }
  .corp .contact-choice { padding: 16px; }
  .profile-grid dl > div { grid-template-columns: 5.5em 1fr; }
  .company-news li { flex-wrap: wrap; gap: 4px 16px; }
  .carousel.is-ready .carousel-slides { row-gap: 14px; }
  .carousel.is-ready .case { grid-row: 1 / span 2; grid-template-rows: subgrid; padding: 16px; }
  .carousel .favorite-games { gap: 8px 4px; }
  .carousel .favorite-games span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .carousel .favorite-games img { width: min(100%,72px); }
}
/* Shared typography for the product notice and contact pages. */
.typing-product { margin: 0; background: white; color: var(--corp-ink); font: 16px/1.8 var(--corp-font); }
.typing-product > .notice-page-main, .typing-product.contact > section {
  box-sizing: border-box; width: 100%; max-width: none; margin: 0;
  padding: clamp(32px,5vw,70px) max(var(--gutter), calc((100% - 1200px)/2 + var(--gutter)));
}
.typing-product.contact > section { background: var(--corp-pale); }
.typing-product .notice-article { border: 0; padding: 0; background: white; box-shadow: none; }
.typing-product .notice-article__body { max-width: none; }
.typing-product .notice-article h1, .typing-product .notice-article__body h2 { color: var(--corp-ink); }
.typing-product .notice-article__body h2 { border: 0; font-size: clamp(22px,2vw,32px); }
.typing-product .notice-article__divider { height: 1px; background: var(--corp-rule); }
.typing-product .contact-support-notice { max-width: none; border: 0; margin: 0 0 24px; padding: 20px; background: white; }
.typing-product.contact iframe { display: block; box-sizing: border-box; width: 100%; max-width: 100%; margin: 0; }

.games-index .game-card[hidden] { display: none; }
