/* SzpiLAB — szpilab.com v2（作品カタログ型・日英） */
:root {
  --teal: #00a9ac;
  --teal-ink: #007f82;
  --ink: #22292f;
  --muted: #6b7680;
  --line: #e3e8ec;
  --paper: #ffffff;
  --soft: #f4f7f8;
  --radius: 18px;
  --header-h: 68px;
  --font: Poppins, "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --c: var(--teal);
  --c-soft: #e6f6f6;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-weight: 500; line-height: 1.85; letter-spacing: .03em; -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { letter-spacing: .01em; line-height: 1.7; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
.wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }
.narrow { width: min(100% - 32px, 780px); margin-inline: auto; }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--c); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--c); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  font: 700 15px/1 var(--font); letter-spacing: .04em; padding: 15px 26px; border-radius: 999px;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgb(0 0 0 / .12); }
.btn.ghost { background: transparent; color: var(--c); box-shadow: inset 0 0 0 2px var(--c); }
.btn[aria-disabled="true"] { background: #c9d0d5; color: #fff; pointer-events: none; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgb(255 255 255 / .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header .logo img { width: 58px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .05em; }
.nav a:hover { color: var(--teal); }
.nav a[aria-current="page"] { color: var(--teal); }
.nav .shop-link { background: var(--teal); color: #fff; border-radius: 999px; padding: 7px 18px; }
.nav .shop-link:hover { color: #fff; opacity: .85; }
.lang { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; font-size: 12px; }
.lang a, .lang span { padding: 4px 10px; font-weight: 700; text-decoration: none; }
.lang span { background: var(--ink); color: #fff; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: .2s; }
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    transform: translateY(-120%); transition: transform .25s; z-index: -1;
  }
  .nav.open { transform: none; }
  .nav > a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .shop-link { margin-top: 14px; text-align: center; border: 0; }
  .nav .lang { align-self: flex-start; margin-top: 14px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* language suggestion banner */
.lang-banner { background: var(--ink); color: #fff; font-size: 14px; }
.lang-banner .wrap { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 9px 0; flex-wrap: wrap; }
.lang-banner a { color: #fff; font-weight: 700; }
.lang-banner button { background: none; border: 0; color: #fff; font-size: 18px; cursor: pointer; line-height: 1; }

/* home hero */
.hero { position: relative; overflow: hidden; background: #0d2b2c; color: #fff; }
.hero video { width: 100%; height: min(72vh, 640px); object-fit: cover; opacity: .72; }
.hero .inner { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 16px; }
.hero h1 { font-weight: 800; font-size: clamp(30px, 6vw, 64px); line-height: 1.15; letter-spacing: .01em; }
.hero p { margin-top: 14px; font-size: clamp(14px, 2vw, 18px); text-shadow: 0 1px 8px rgb(0 0 0 / .4); }
.hero .btn { margin-top: 26px; --c: #fff; color: var(--ink); justify-self: center; }

/* section heads */
.sec { padding: 72px 0; }
.sec.soft { background: var(--soft); }
.sec-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-title h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: .02em; line-height: 1.2; }
.sec-title h2 small { display: block; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .12em; margin-top: 6px; }

/* game catalog */
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.game-card {
  --c-soft: #eef4f6; display: flex; flex-direction: column; text-decoration: none;
  border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.game-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgb(0 0 0 / .1); }
.game-card .pic { background: var(--c-soft); padding: 18px; }
.game-card .pic img { aspect-ratio: 1; object-fit: contain; width: 100%; }
.game-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-card h3 { font-size: 22px; font-weight: 800; color: var(--c); line-height: 1.3; }
.game-card h3 small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .1em; }
.game-card .catch { font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.chip { font-size: 12px; font-weight: 700; background: var(--soft); border-radius: 999px; padding: 3px 11px; color: var(--muted); }
.chip.hot { background: var(--c); color: #fff; }

/* news */
.news li a { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.news li:first-child a { border-top: 1px solid var(--line); }
.news .date { color: var(--muted); font-size: 14px; }
.news a:hover .t { color: var(--teal); }
@media (max-width: 560px) { .news li a { grid-template-columns: 1fr; gap: 0; } }

/* intro strip */
.intro { display: grid; grid-template-columns: 180px 1fr; gap: 40px; align-items: center; }
.intro img { width: 180px; }
.intro p + p { margin-top: 12px; }
@media (max-width: 640px) { .intro { grid-template-columns: 1fr; gap: 20px; } .intro img { width: 120px; } }

/* game page */
.g-hero { background: var(--c-soft); padding: 48px 0 56px; }
.g-hero .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.g-hero .box { width: 100%; max-width: 520px; justify-self: center; mix-blend-mode: multiply; }
.g-hero h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; color: var(--c); line-height: 1.1; }
.g-hero h1 small { display: block; font-size: 14px; color: var(--muted); letter-spacing: .14em; margin-top: 8px; }
.g-hero .catch { font-size: clamp(18px, 2.4vw, 22px); font-weight: 700; margin-top: 18px; line-height: 1.5; }
.g-hero .lead { margin-top: 16px; font-size: 15px; }
.spec { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.spec li { background: #fff; border-radius: 12px; padding: 8px 14px; font-weight: 700; font-size: 14px; display: flex; flex-direction: column; line-height: 1.3; }
.spec li small { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.g-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.badges img { height: 56px; width: auto; }
@media (max-width: 820px) { .g-hero .grid { grid-template-columns: 1fr; gap: 24px; } .g-hero .box { max-width: 360px; } }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.gallery > * { aspect-ratio: 4/3; object-fit: cover; width: 100%; height: 100%; }
@media (max-width: 720px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.howto .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.howto .cols figure { border-radius: var(--radius); overflow: hidden; }
@media (max-width: 760px) { .howto .cols { grid-template-columns: 1fr; gap: 20px; } }
.steps { margin-top: 48px; display: grid; gap: 40px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; }
.step .no { width: 44px; height: 44px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.step .media { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.step .media > * { border-radius: 12px; width: 100%; }
@media (max-width: 560px) { .step { grid-template-columns: 1fr; gap: 10px; } }

.video-wrap { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.fact { background: #fff; border-radius: var(--radius); padding: 22px 24px; border: 1px solid var(--line); }
.fact h3 { font-size: 13px; letter-spacing: .14em; color: var(--c); margin-bottom: 8px; text-transform: uppercase; }
.fact p, .fact li { font-size: 14px; }
.fact a { text-decoration: none; font-weight: 700; }
.fact a:hover { color: var(--c); }
.fact li + li { margin-top: 6px; }

.notes-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.notes-list a { text-decoration: none; display: block; }
.notes-list img { border-radius: 12px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.notes-list .t { font-weight: 700; margin-top: 10px; font-size: 15px; line-height: 1.5; }
.notes-list .d { color: var(--muted); font-size: 13px; }

/* buy box (game page + shop) */
.buy { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 30px; }
.buy h2 { font-size: 24px; font-weight: 800; }
.buy .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.buy select, .region-select select {
  font: 600 15px var(--font); padding: 12px 40px 12px 14px; border-radius: 12px; border: 0; min-width: min(100%, 320px);
  appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2322292f' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--ink);
}
.buy .note { font-size: 13px; opacity: .8; margin-top: 12px; }
.buy .price { font-size: 15px; }
.buy .price b { font-size: 22px; }
.buy .btn { --c: var(--teal); }

/* shop */
.region-select { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: var(--soft); border-radius: var(--radius); padding: 20px 22px; }
.region-select label { font-weight: 700; }
.region-select select { border: 1.5px solid var(--line); }
.region-info { margin-top: 14px; font-size: 14px; color: var(--muted); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; margin-top: 28px; }
.product { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product .pic { background: var(--c-soft); padding: 14px; }
.product .pic img { aspect-ratio: 1; object-fit: contain; width: 100%; mix-blend-mode: multiply; }
.product .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product h3 { font-size: 18px; font-weight: 800; line-height: 1.35; }
.product .meta { font-size: 13px; color: var(--muted); }
.product .price { font-size: 14px; margin-top: auto; padding-top: 10px; }
.product .price b { font-size: 22px; }
.product .btn { margin-top: 10px; width: 100%; }
.product .status { font-size: 13px; color: var(--muted); }
.product[hidden] { display: none; }

/* prose / legal */
.prose h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; line-height: 1.3; margin-bottom: 24px; }
.prose h2 { font-size: 21px; font-weight: 800; margin: 44px 0 14px; }
.prose p, .prose li { font-size: 15px; }
.prose p + p { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.prose th { background: var(--soft); }
.dl { display: grid; grid-template-columns: 210px 1fr; border-top: 1px solid var(--line); font-size: 14px; }
.dl dt, .dl dd { padding: 14px 8px; border-bottom: 1px solid var(--line); }
.dl dt { font-weight: 700; background: var(--soft); }
@media (max-width: 640px) { .dl { grid-template-columns: 1fr; } .dl dt { border-bottom: 0; padding-bottom: 4px; } .dl dd { padding-top: 4px; } }

/* about */
.members { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; text-align: center; }
.members img { width: 160px; border-radius: 50%; margin: 0 auto 14px; }
.members .name { font-weight: 800; font-size: 18px; }
.members .role { color: var(--muted); font-size: 14px; }
.contact-form { display: grid; gap: 8px; max-width: 620px; }
.contact-form label { font-weight: 700; font-size: 14px; margin-top: 10px; }
.contact-form input, .contact-form textarea { font: 500 15px var(--font); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; width: 100%; }
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form .btn { justify-self: start; margin-top: 16px; }
.contact-form .note { font-size: 13px; color: var(--muted); }

/* footer */
.site-footer { background: var(--ink); color: #cfd6db; padding: 48px 0 36px; font-size: 14px; margin-top: 0; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer img.logo { width: 60px; filter: brightness(0) invert(1); margin-bottom: 12px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .14em; margin: 0 0 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer li + li { margin-top: 6px; }
.site-footer .sns { display: flex; gap: 14px; margin-top: 14px; }
.site-footer .sns img { width: 22px; height: 22px; filter: brightness(0) invert(1); opacity: .85; }
.site-footer .copy { margin-top: 36px; font-size: 12px; opacity: .7; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr; } }

.notfound { text-align: center; padding: 120px 0; }
.notfound h1 { font-size: 72px; font-weight: 800; color: var(--teal); }

/* fixes after first review */
select[data-region] {
  font: 600 15px var(--font); padding: 12px 40px 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); min-width: min(100%, 320px); max-width: 100%;
  appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2322292f' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--ink);
}
.g-hero .badges img { background: var(--c); border-radius: 12px; padding: 6px 10px; height: 60px; }
.step .media { grid-template-columns: repeat(auto-fill, minmax(200px, 320px)); }
.step .media > * { max-height: 300px; object-fit: cover; }
.btn { text-align: center; line-height: 1.3; }
.product .btn[aria-disabled="true"] { font-size: 13px; }
.sec-title > div { max-width: 100%; }
@media (max-width: 560px) { .sec-title > div, select[data-region] { width: 100%; } }
