/* Peninsula Shogi Club — site styles */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/montserrat-latin-900-normal.woff2") format("woff2"); }

:root {
  --paper: #fbf9f4;
  --cream: #f5f1e8;
  --white: #ffffff;
  --navy: #1c3570;
  --blue: #2c59dc;
  --blue-dark: #2148b8;
  --blue-soft: #e8eefc;
  --yellow: #f3c436;
  --wood: #e9cc98;
  --wood-light: #f3dfb6;
  --wood-line: #6b4a1f;
  --ink: #17213b;
  --sub: #545d72;
  --line: #e3ddd0;
  --red: #c2331f;
  --green: #17804a;
  --green-soft: #e3f4ea;
  --amber-soft: #fff4d6;
  --radius: 16px;
  --shadow: 0 10px 26px rgba(23, 33, 59, .08);
  --shadow-lg: 0 18px 44px rgba(23, 33, 59, .16);
  --head: "Montserrat", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Sans", "Noto Sans JP", "Noto Sans SC", "Noto Sans KR", sans-serif;
  --kanji: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif CJK JP", "Source Han Serif JP", "Songti SC", serif;
  --wrap: 1120px;
  --gutter: 20px;
}
:lang(ja) { --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif; }
:lang(zh) { --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; }
:lang(ko) { --sans: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; }
:lang(ja) body, body:lang(ja), :lang(zh) body, body:lang(zh), :lang(ko) body, body:lang(ko) { line-break: strict; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(zh) h2, :lang(ko) h2 { word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; color: #fff; }
[hidden] { display: none !important; }

/* ---------- preview bar ---------- */
.preview-bar { background: var(--ink); color: #eef1f8; font-size: 13px; line-height: 1.4; text-align: center; padding: 7px 16px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251, 249, 244, .94); -webkit-backdrop-filter: saturate(1.2) blur(8px); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-family: var(--head); font-weight: 800; font-size: 17px; letter-spacing: .005em; white-space: nowrap; }
.brand:hover { color: var(--navy); }
.brand img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--sub); font-weight: 650; font-size: 15px; white-space: nowrap; }
.main-nav a:hover { color: var(--blue); background: var(--blue-soft); }
.main-nav a[aria-current="page"] { color: var(--navy); background: var(--cream); }
.header-tools { display: flex; align-items: center; gap: 8px; flex: none; }

/* language switcher */
.lang { position: relative; display: flex; align-items: center; gap: 6px; }
.lang-seg { display: flex; border: 1px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.lang-seg button { border: 0; background: transparent; padding: 6px 12px; cursor: pointer; color: var(--sub); font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.lang-seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.lang-more { border: 1px solid var(--line); background: #fff; border-radius: 999px; height: 32px; min-width: 32px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; color: var(--sub); font-size: 13.5px; font-weight: 600; }
.lang-more[aria-expanded="true"], .lang-more.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.lang-more svg { width: 16px; height: 16px; flex: none; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 170px; z-index: 60; }
.lang-menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; border: 0; background: transparent; text-align: left; padding: 9px 12px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.lang-menu button:hover { background: var(--blue-soft); }
.lang-menu button[aria-pressed="true"] { font-weight: 700; color: var(--navy); }
.lang-menu button[aria-pressed="true"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }

.nav-toggle, .icon-btn { border: 1px solid var(--line); background: #fff; width: 40px; height: 40px; border-radius: 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--navy); }
.nav-toggle { display: none; }
.nav-toggle svg, .icon-btn svg { width: 22px; height: 22px; }

/* ---------- common blocks ---------- */
.section { padding-top: 88px; }
.section:first-of-type { padding-top: 56px; }
.eyebrow { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); font-weight: 800; margin: 0; }
:lang(ja) .eyebrow, :lang(zh) .eyebrow, :lang(ko) .eyebrow { letter-spacing: .08em; }
h1, h2, h3 { color: var(--navy); margin: 0; }
h2 { font-family: var(--head); font-size: clamp(28px, 3.8vw, 42px); line-height: 1.2; font-weight: 900; margin: 8px 0 14px; }
:lang(ja) h2, :lang(zh) h2, :lang(ko) h2 { font-family: var(--sans); font-weight: 800; line-height: 1.35; }
h3 { font-size: 19px; line-height: 1.4; font-weight: 800; }
.lead { color: var(--sub); max-width: 720px; margin: 0; font-size: 17px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; padding: 12px 22px; border-radius: 999px; font-weight: 750; font-size: 15px; line-height: 1.3; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--navy); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--yellow); color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.page-head { padding-top: 56px; padding-bottom: 8px; }
.page-head h1 { font-family: var(--head); font-size: clamp(34px, 5.4vw, 56px); line-height: 1.08; font-weight: 900; margin: 10px 0 16px; }
:lang(ja) .page-head h1, :lang(zh) .page-head h1, :lang(ko) .page-head h1 { font-family: var(--sans); font-weight: 800; line-height: 1.3; }

/* ---------- home: hero ---------- */
.hero { background: var(--cream); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 84px; }
.tag { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; font-size: 13px; color: var(--sub); font-weight: 650; }
.tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); display: inline-block; }
.hero h1 { font-family: var(--head); font-weight: 900; color: var(--blue); font-size: clamp(44px, 7vw, 80px); line-height: .98; letter-spacing: -.01em; margin: 18px 0 20px; text-transform: uppercase; }
.hero .lead { color: var(--ink); font-size: 18px; margin-bottom: 28px; max-width: 540px; }
.hero-visual { position: relative; max-width: 480px; margin-left: auto; width: 100%; }
.hero-visual .sb { transform: rotate(-2.5deg); filter: drop-shadow(0 22px 34px rgba(23, 33, 59, .22)); }
.hero-badge { position: absolute; left: -22px; bottom: -26px; width: 112px; height: 112px; border-radius: 50%; background: #fff; padding: 5px; box-shadow: 0 10px 24px rgba(23, 33, 59, .2); }
.hero-badge img { width: 100%; height: 100%; border-radius: 50%; }

.facts { position: relative; margin-top: -44px; z-index: 2; }
.facts-card { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); box-shadow: var(--shadow); }
.fact { padding: 16px 22px; min-width: 0; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); font-weight: 800; }
:lang(ja) .fact .k, :lang(zh) .fact .k, :lang(ko) .fact .k { letter-spacing: .04em; }
.fact .v { font-weight: 800; font-size: 18px; color: var(--navy); line-height: 1.4; }
.fact .v.small { font-size: 15.5px; }
.fact.next { background: var(--blue); color: #fff; border-radius: var(--radius) 0 0 var(--radius); }
.fact.next .k { color: #ffe08a; }
.fact.next .v { color: #fff; font-size: 20px; }

/* why join */
.why-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.why-item { padding: 20px 18px; }
.why-item b { display: block; font-family: var(--head); font-weight: 900; color: var(--blue); font-size: 22px; line-height: 1; margin-bottom: 12px; }
.why-item h3 { font-size: 16.5px; margin-bottom: 6px; }
.why-item p { margin: 0; color: var(--sub); font-size: 14.5px; line-height: 1.6; }

/* what is shogi */
.feature { position: relative; background: #111418 url("../img/pieces.jpg") right center / cover no-repeat; color: #fff; border-radius: 22px; overflow: hidden; }
.feature::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 12, 16, .94) 0%, rgba(10, 12, 16, .8) 48%, rgba(10, 12, 16, .2) 100%); }
.feature-in { position: relative; padding: 48px 44px; max-width: 600px; }
.feature .eyebrow { color: var(--yellow); }
.feature h2 { color: #fff; }
.feature ul { list-style: none; margin: 16px 0 26px; padding: 0; display: grid; gap: 14px; }
.feature li { position: relative; padding-left: 24px; font-size: 16.5px; font-weight: 650; }
.feature li::before { content: ""; position: absolute; left: 0; top: .5em; width: 11px; height: 12px; background: var(--yellow); clip-path: polygon(50% 0, 100% 28%, 100% 100%, 0 100%, 0 28%); }
.feature li span { display: block; font-weight: 400; color: #c9d0de; font-size: 15px; margin-top: 2px; }

/* meetings */
.meet-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px; align-items: start; margin-top: 26px; }
.info { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info th, .info td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15.5px; }
.info th { width: 34%; color: var(--sub); font-weight: 650; background: #fdfcf8; }
.info tr:last-child th, .info tr:last-child td { border-bottom: 0; }
.info td strong { color: var(--navy); }
.note { color: var(--sub); font-size: 14px; margin: 12px 2px 0; }
.board-card { padding: 22px 24px; }
.board-card h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 12px; }
:lang(ja) .board-card h3, :lang(zh) .board-card h3, :lang(ko) .board-card h3 { letter-spacing: .05em; }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.board-list li:first-child { border-top: 0; padding-top: 2px; }
.board-list .role { color: var(--sub); font-size: 14px; font-weight: 650; }
.board-list .name { color: var(--navy); font-weight: 800; }

/* news cards */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.news-grid.one-col { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.moai-news-item { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.moai-news-item img { order: -1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--cream); }
.moai-news-item time { display: block; color: var(--sub); font-size: 13px; padding: 14px 18px 0; }
.moai-news-title { font-weight: 800; color: var(--navy); padding: 6px 18px 0; font-size: 16.5px; line-height: 1.45; }
.moai-news-item > .moai-news-title:first-child { padding-top: 16px; }
.moai-news-body { color: var(--sub); padding: 6px 18px 18px; font-size: 14.5px; line-height: 1.65; }
.home-news .moai-news-item:nth-child(n+4) { display: none; }
.one-col .moai-news-item { display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: auto auto 1fr; }
.one-col .moai-news-item img { grid-row: 1 / span 3; aspect-ratio: 4 / 5; height: 100%; }
.one-col .moai-news-item time { padding-top: 18px; }
.more-link { margin-top: 18px; font-weight: 700; }

/* things the club updates in its editor */
.notice-band { background: var(--amber-soft); border-bottom: 1px solid #efd88f; }
.notice-in { display: flex; align-items: flex-start; gap: 8px 14px; padding-top: 12px; padding-bottom: 12px; }
.notice-label { flex: none; background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 2px 12px; font-size: 13px; font-weight: 800; line-height: 1.6; margin-top: 2px; }
.notice-text { margin: 0; color: #3f3209; font-weight: 650; white-space: pre-line; overflow-wrap: anywhere; min-width: 0; }
.moai-news-body { white-space: pre-line; overflow-wrap: anywhere; }
.one-col .moai-news-item.no-img { grid-template-columns: minmax(0, 1fr); }
.news-empty { color: var(--sub); margin: 0; }
.hero-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; border: 6px solid #fff; background: var(--cream); box-shadow: var(--shadow-lg); transform: rotate(-2deg); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.gallery-item { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--cream); }
.gallery-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .25s ease; }
.gallery-item:hover img { transform: scale(1.03); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(94vw, 1100px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 12, 16, .86); }
.lightbox img { max-width: 100%; max-height: 88vh; width: auto; height: auto; border-radius: 12px; margin: 0 auto; }
.lightbox-close { position: absolute; top: 10px; right: 10px; box-shadow: var(--shadow); }

/* puzzle teaser */
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 36px; align-items: center; background: var(--blue-soft); border-radius: 22px; padding: 40px 44px; }
.teaser h2 { margin-top: 6px; }
.teaser p { margin: 0 0 22px; color: var(--sub); }
.teaser .sb { max-width: 300px; margin: 0 auto; }

/* instagram */
.ig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.ig-grid a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; position: relative; }
.ig-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .25s ease; }
.ig-grid a:hover img { transform: scale(1.03); }
.ig-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; }

/* cta band */
.cta { margin-top: 88px; background: var(--navy); color: #fff; border-radius: 22px; padding: 40px 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px; }
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { margin: 0; color: #d4dcf0; }

/* ---------- footer ---------- */
.site-footer { margin-top: 96px; background: var(--ink); color: #c8cfdf; padding: 48px 0 36px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.site-footer .brand { color: #fff; }
.site-footer .brand img { width: 46px; height: 46px; }
.site-footer .brand span { max-width: none; white-space: nowrap; font-size: 17px; }
.site-footer p { margin: 12px 0 0; }
.site-footer h2 { font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 4px 0 12px; font-weight: 800; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #e3e8f4; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.copy { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 20px; font-size: 13px; color: #98a1b6; }

/* ---------- shogi board ---------- */
.sb { --line-c: rgba(74, 49, 16, .72); width: 100%; }
.sb-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr); }
.sb-files { grid-column: 1; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); padding: 0 6px; font-size: 12px; color: var(--sub); text-align: center; line-height: 1.8; font-weight: 600; }
.sb-ranks { grid-column: 2; grid-row: 2; display: grid; grid-template-rows: repeat(9, minmax(0, 1fr)); padding: 6px 0 6px 5px; font-size: 12px; color: var(--sub); align-items: center; font-weight: 600; }
.sb-board { grid-column: 1; grid-row: 2; position: relative; aspect-ratio: 1 / 1; background: linear-gradient(135deg, #f1d8a6 0%, #e7c68c 55%, #ddb778 100%); border: 6px solid #b98a45; border-radius: 6px; padding: 0; container-type: inline-size; box-shadow: inset 0 0 0 1px rgba(80, 50, 10, .35); }
.sb-cells { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); grid-template-rows: repeat(9, minmax(0, 1fr)); }
.sb-cell { position: relative; border: 0; margin: 0; padding: 0; background: transparent; border-right: 1px solid var(--line-c); border-bottom: 1px solid var(--line-c); display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; -webkit-tap-highlight-color: transparent; }
.sb-cell:nth-child(9n) { border-right: 0; }
.sb-cell:nth-child(n+73) { border-bottom: 0; }
button.sb-cell { cursor: pointer; }
button.sb-cell:disabled { cursor: default; }
.sb-cell.hoshi::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 5px; height: 5px; border-radius: 50%; background: var(--wood-line); z-index: 1; }
.sb-cell.is-sel { background: rgba(243, 196, 54, .55); }
.sb-cell.is-last { background: rgba(44, 89, 220, .16); }
.sb-cell.is-target::before { content: ""; position: absolute; width: 26%; height: 26%; border-radius: 50%; background: rgba(44, 89, 220, .42); z-index: 2; pointer-events: none; }
.sb-cell.is-target.has-piece::before { width: 88%; height: 88%; background: transparent; border: 3px solid rgba(44, 89, 220, .6); }
.sb-cell.is-hint { animation: hint 1.1s ease-in-out infinite; }
.sb-cell.is-mated { background: rgba(194, 51, 31, .28); }
@keyframes hint { 0%, 100% { background: rgba(243, 196, 54, .15); } 50% { background: rgba(243, 196, 54, .7); } }

.pc { position: relative; width: 86%; height: 92%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--kanji); font-weight: 700; color: #1b1308; font-size: 20px; font-size: 5.6cqw; line-height: 1; pointer-events: none; }
.pc::before { content: ""; position: absolute; inset: 0; background: #7a5a2b; clip-path: polygon(50% 0, 88% 17%, 100% 100%, 0 100%, 12% 17%); }
.pc::after { content: ""; position: absolute; inset: 1.5px; background: linear-gradient(180deg, #fbe9c1 0%, #f0d499 100%); clip-path: polygon(50% 0, 88% 17%, 100% 100%, 0 100%, 12% 17%); }
.pc > span { position: relative; z-index: 1; }
.pc > span:first-child { padding-top: 14%; }
.pc.w { transform: rotate(180deg); }
.pc.pro > span:first-child { color: var(--red); }
.pc.king > span:first-child { font-size: 1.04em; }
.pc .lt { display: none; font-family: var(--head); font-weight: 800; font-size: 11px; font-size: 2.1cqw; color: #7a5a2b; margin-top: 2%; letter-spacing: 0; }
.letters .pc .lt { display: block; }
.letters .pc > span:first-child { font-size: .84em; padding-top: 12%; }
.hand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; min-height: 52px; }
.hand-label { font-size: 13.5px; color: var(--sub); font-weight: 650; margin-right: 4px; }
.hand-piece { position: relative; width: 46px; height: 52px; border: 2px solid transparent; border-radius: 10px; background: rgba(233, 204, 152, .45); display: flex; align-items: center; justify-content: center; cursor: pointer; container-type: inline-size; }
.hand-piece .pc { font-size: 24px; width: 80%; height: 82%; }
.hand-piece .pc .lt { font-size: 9px; font-size: 20cqw; }
.hand-piece .count { position: absolute; right: -6px; top: -6px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; }
.hand-piece[aria-pressed="true"] { border-color: var(--yellow); background: rgba(243, 196, 54, .45); }
.hand-piece.is-hint { animation: hint 1.1s ease-in-out infinite; }
.hand-piece:disabled { cursor: default; opacity: .9; }
.opp-hand { font-size: 13px; color: var(--sub); margin: 0 0 8px; }

/* ---------- learn page ---------- */
.learn-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 44px; align-items: start; margin-top: 30px; }
.toc { position: sticky; top: 88px; font-size: 14.5px; }
.toc p { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); font-weight: 800; margin: 0 0 10px; }
.toc ol { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; color: var(--sub); }
.toc a { color: var(--sub); text-decoration: none; }
.toc a:hover { color: var(--blue); }
.learn-sec { padding-top: 12px; margin-bottom: 52px; scroll-margin-top: 86px; }
.learn-sec h2 { font-size: clamp(24px, 3vw, 32px); }
.learn-sec p { margin: 0 0 12px; }
.learn-sec ul, .learn-sec ol { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 8px; }
.setup { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: center; }
.setup figure { margin: 0; }
.setup figcaption { font-size: 14px; color: var(--sub); margin-top: 8px; text-align: center; }
.piece-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.piece-card { padding: 18px; display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; align-items: start; }
.piece-card h3 { font-size: 17px; margin-bottom: 2px; }
.piece-card .jp { font-size: 13px; color: var(--sub); margin: 0 0 6px; }
.piece-card p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.piece-card .promo { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--sub); }
.piece-card .promo strong { color: var(--red); }
.mv { width: 116px; height: 116px; display: block; }
.mv-pair { display: grid; gap: 8px; }
.mv-pair .mv { width: 116px; height: 116px; }
.rule-box { background: var(--amber-soft); border: 1px solid #efd88f; border-radius: 14px; padding: 16px 20px; margin-top: 12px; }
.rule-box h3 { font-size: 15.5px; margin-bottom: 8px; }
.names { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.names th, .names td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.names thead th { background: #fdfcf8; color: var(--sub); font-weight: 650; font-size: 13.5px; }
.names tr:last-child td { border-bottom: 0; }
.names .k { font-family: var(--kanji); font-size: 22px; font-weight: 700; width: 64px; }
.names .k .pro { color: var(--red); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- puzzles page ---------- */
.pz-layout { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 26px; }
.pz-play .pz-msg { margin-bottom: 12px; }
.pz-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.pz-tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--navy); display: inline-flex; align-items: center; gap: 8px; }
.pz-tab[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pz-tab .ok { width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 11px; }
.pz-tab .stars { color: #d6a000; letter-spacing: 1px; font-size: 12px; }
.pz-tab[aria-current="true"] .stars { color: var(--yellow); }
.pz-panel { padding: 24px 26px; }
.pz-heading { margin: 0 0 4px; font-size: clamp(22px, 3vw, 28px); }
.pz-level { font-size: 13.5px; color: var(--sub); margin: 0 0 14px; }
.pz-msg { border-radius: 12px; padding: 12px 16px; background: var(--cream); font-weight: 650; margin: 0 0 14px; min-height: 48px; }
.pz-msg.good { background: var(--green-soft); color: #0f5c34; }
.pz-msg.bad { background: #fde9e6; color: #8a2414; }
.pz-msg.info { background: var(--blue-soft); color: var(--navy); }
.pz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.pz-actions .btn { padding: 10px 18px; font-size: 14.5px; }
.pz-explain { border-left: 4px solid var(--blue); padding: 4px 0 4px 16px; margin: 0 0 14px; }
.pz-explain b { display: block; color: var(--navy); margin-bottom: 4px; }
.pz-explain p { margin: 0; }
.pz-toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--sub); cursor: pointer; margin-top: 12px; }
.pz-toggle input { width: 18px; height: 18px; accent-color: var(--blue); }
.promote-box { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 2px solid var(--yellow); box-shadow: var(--shadow); }
.promote-box p { margin: 0 0 10px; font-weight: 750; color: var(--navy); }
.promote-box .btns { gap: 8px; }
.how { padding: 20px 22px; }
.how h3 { font-size: 16px; margin-bottom: 8px; }
.how ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; color: var(--sub); }
.coords-note { font-size: 13.5px; color: var(--sub); margin: 12px 0 0; }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px; align-items: start; margin-top: 30px; }
.form { padding: 26px 28px; display: grid; gap: 16px; }
.form h2 { font-size: 24px; margin: 0; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14.5px; font-weight: 700; color: var(--navy); }
.field input, .field textarea, .field select { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #d6cfbf; border-radius: 12px; background: var(--paper); color: var(--ink); width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid rgba(44, 89, 220, .25); border-color: var(--blue); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13.5px; color: var(--sub); margin: 0; }
.form-status { border-radius: 12px; padding: 12px 16px; font-weight: 650; margin: 0; }
.form-status.ok { background: var(--green-soft); color: #0f5c34; }
.form-status.err { background: #fde9e6; color: #8a2414; }
.form-status.info { background: var(--amber-soft); color: #6b5415; }
.steps { padding: 24px 26px; }
.steps h2 { font-size: 22px; margin: 0 0 12px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { position: relative; padding-left: 44px; min-height: 30px; font-weight: 650; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--head); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.steps .meta { display: block; font-weight: 400; color: var(--sub); font-size: 14.5px; }
.side-stack { display: grid; gap: 18px; }
.ig-box { background: var(--blue-soft); border-radius: var(--radius); padding: 22px 24px; }
.ig-box h2 { font-size: 20px; margin: 0 0 4px; }
.ig-box p { margin: 0 0 12px; color: var(--sub); }

/* ---------- 404 ---------- */
.nf { text-align: center; padding-top: 96px; padding-bottom: 24px; }
.nf h1 { font-family: var(--head); font-size: clamp(34px, 5vw, 52px); margin: 10px 0 12px; }
.nf-lead { margin: 0 auto 24px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .fact.next { border-radius: var(--radius) 0 0 0; }
  .learn-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .site-header { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); background: var(--paper); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 76px 18px 24px; transform: translateX(105%); transition: transform .22s ease; z-index: 80; margin: 0; overflow-y: auto; }
  .main-nav.is-open { transform: none; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { font-size: 17px; padding: 12px 14px; border-radius: 12px; }
  .nav-close { position: absolute; top: 14px; right: 14px; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(23, 33, 59, .35); z-index: 70; }
  .header-tools { margin-left: auto; }
  .hero-in { grid-template-columns: minmax(0, 1fr); padding-top: 36px; padding-bottom: 76px; gap: 40px; }
  .hero-visual { margin: 0 auto; max-width: 420px; }
  .meet-grid, .contact-grid, .pz-layout, .setup { grid-template-columns: minmax(0, 1fr); }
  .pz-layout .sb, .setup figure { max-width: 480px; margin: 0 auto; width: 100%; }
  .pz-play { max-width: 480px; width: 100%; margin: 0 auto; }
  .teaser { grid-template-columns: minmax(0, 1fr); padding: 32px 28px; }
  .teaser .sb { max-width: 260px; margin: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (min-width: 961px) { .nav-close, .nav-backdrop { display: none !important; } }
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .section { padding-top: 64px; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-item:last-child { grid-column: 1 / -1; }
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .ig-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .feature-in, .cta { padding: 32px 24px; }
  .piece-grid { grid-template-columns: minmax(0, 1fr); }
  .one-col .moai-news-item { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .one-col .moai-news-item img { grid-row: auto; height: auto; aspect-ratio: 4 / 3; }
  .info th { width: 38%; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
@media (max-width: 560px) {
  .header-in { gap: 10px; }
  .brand { gap: 8px; }
  .brand span { font-size: 14px; white-space: normal; line-height: 1.12; max-width: 96px; }
  .brand img { width: 34px; height: 34px; }
  .header-tools { gap: 6px; }
  .lang { gap: 4px; }
  .lang-seg button { padding: 6px 8px; font-size: 13px; }
  .lang-more { min-width: 30px; height: 30px; padding: 0 7px; }
  .lang-more-label:empty { display: none; }
  .nav-toggle { width: 38px; height: 38px; }
  .facts-card { grid-template-columns: minmax(0, 1fr); }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .fact.next { border-radius: var(--radius) var(--radius) 0 0; }
  .hero-badge { width: 84px; height: 84px; left: -6px; bottom: -22px; }
  .hero-visual .sb, .hero-photo { transform: none; }
  .notice-in { flex-direction: column; gap: 6px; }
  .info th, .info td { display: block; width: auto; border-bottom: 0; }
  .info th { padding-bottom: 2px; background: #fff; }
  .info td { padding-top: 0; border-bottom: 1px solid var(--line); }
  .info tr:last-child td { border-bottom: 0; }
  .piece-card { grid-template-columns: 96px minmax(0, 1fr); padding: 16px; gap: 14px; }
  .mv, .mv-pair .mv { width: 96px; height: 96px; }
  .toc ol { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .pz-panel, .form, .steps { padding: 20px; }
}
@media (max-width: 380px) {
  .brand img { width: 30px; height: 30px; }
  .brand span { font-size: 13px; max-width: 86px; }
}
