:root {
  color-scheme: light;
  --paper: #faf8f1;
  --ink: #183a31;
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, "Songti SC", "Songti TC", "Noto Serif CJK SC", "Yu Mincho", serif;
  --sans: "Avenir Next", "Segoe UI", "PingFang SC", "PingFang TC", "Hiragino Sans", "Noto Sans CJK JP", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid #ad7116; outline-offset: 4px; }
.frame { width: min(100% - clamp(40px, 10vw, 176px), 1360px); margin-inline: auto; }
.skip { position: fixed; z-index: 9; inset: 8px auto auto 8px; padding: 12px 18px; color: white; background: var(--ink); transform: translateY(-180%); }
.skip:focus { transform: none; }
.site-header { position: relative; z-index: 3; background: var(--paper); }
.header-row, .header-row nav, .brand, .language summary, .button, .guide { display: flex; align-items: center; }
.header-row { height: clamp(68px, 6vw, 84px); justify-content: space-between; gap: 20px; }
.brand { gap: 8px; color: #153b30; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 31px); font-weight: 650; letter-spacing: -.05em; white-space: nowrap; }
.brand svg { width: 32px; height: 35px; color: #806232; }
.header-row nav { gap: clamp(19px, 2.5vw, 40px); font-size: 14px; font-weight: 550; }
.header-row nav > a:hover, .guide:hover { text-decoration: underline; text-underline-offset: .3em; }
.language { position: relative; }
.language summary { gap: 6px; min-height: 44px; cursor: pointer; list-style: none; white-space: nowrap; }
.language summary::-webkit-details-marker { display: none; }
.language summary svg, .button svg, .guide svg, .rule-title svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.language summary svg:last-child { width: 14px; }
.language[open] summary svg:last-child { transform: rotate(180deg); }
.language-list { position: absolute; top: calc(100% + 4px); right: 0; min-width: 152px; padding: 5px; border: 1px solid #d2d8ce; background: var(--paper); border-radius: 7px; box-shadow: 0 8px 25px #102d2025; }
.language-list a { display: block; padding: 10px 14px; border-radius: 4px; }
.language-list a:hover, .language-list a[aria-current] { background: #e5ecdf; }
.hero { isolation: isolate; position: relative; overflow: hidden; background: #123c32; color: #faf4e3; }
.hero-photo { position: absolute; z-index: -1; inset: 0 0 0 34%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 60%; display: block; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #123c32 0%, rgb(18 60 50 / .92) 5%, rgb(18 60 50 / .4) 23%, transparent 46%); }
.hero-inner { min-height: clamp(408px, 34vw, 525px); display: flex; align-items: center; padding-block: clamp(42px, 5.2vw, 80px); }
.hero-copy { width: 46%; max-width: 580px; }
h1, h2, .rule-title { font-family: var(--serif); font-weight: 500; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(57px, 5.85vw, 94px); letter-spacing: -.065em; line-height: .99; }
h1 span, h1 em { display: block; }
h1 em { color: #eacf98; font-weight: 400; }
.hero p { max-width: 39ch; margin-top: 22px; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.6; color: #eceee2; text-wrap: pretty; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.button { gap: 12px; justify-content: center; border-radius: 5px; min-height: 46px; padding: 11px 18px; font-size: 14px; font-weight: 650; line-height: 1.25; transition: background .16s ease, transform .16s ease; }
.button:active { transform: translateY(1px); }
.primary { background: #efd39a; color: #193a2e; border: 1px solid transparent; }
.primary:hover { background: #f6dfa9; }
.secondary { border: 1px solid #99ad92; color: #fff9e8; background: #123c326f; }
.secondary:hover { background: #305548; }
.rules { padding-block: clamp(38px, 4.2vw, 66px) clamp(50px, 7vw, 108px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: clamp(20px, 2.1vw, 30px); }
h2 { font-size: clamp(32px, 3vw, 48px); letter-spacing: -.05em; line-height: 1.16; }
.guide { color: #355a48; gap: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.guide svg { width: 16px; height: 16px; }
.rule-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; gap: clamp(14px, 1.8vw, 30px); margin: 0; padding: 0; }
.rule-list li { min-width: 0; }
.rule { display: flex; flex-direction: column; height: 100%; border-top: 1px solid #b9c7b8; padding-top: 14px; }
.rule-art { display: flex; align-items: center; height: clamp(63px, 5.5vw, 80px); }
.rack { display: inline-flex; align-items: center; gap: 3px; transform: rotate(-4deg); transform-origin: left 80%; padding: 5px 3px; transition: transform .18s ease; --mj-tile-width: 29px; --mj-tile-height: 39px; --mj-radius: 4px; --mj-edge: 2px; --mj-rim: #b4b8a9; --mj-edge-color: #adb9a9; --mj-surface: linear-gradient(140deg,#fffffa 10%,#f7f4e8 95%); }
.rack .mj-tile:nth-child(2) { transform: translateY(-2px); }
.rule:hover .rack { transform: rotate(0deg) translateY(-2px); }
.rule-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 4px; font-size: clamp(20px, 1.85vw, 29px); letter-spacing: -.035em; line-height: 1.18; }
.rule-title svg { align-self: center; width: 17px; height: 17px; color: #526d5f; transform: rotate(-38deg); transition: transform .18s ease; }
.rule:hover .rule-title svg { transform: translate(2px,-2px) rotate(-38deg); }
.rule-description { margin-top: 9px; font-size: 14px; line-height: 1.55; color: #4c6258; text-wrap: pretty; }
html:not(:lang(en)) h1 { font-size: clamp(48px, 5.1vw, 78px); letter-spacing: -.04em; line-height: 1.16; }
html:not(:lang(en)) h1 em { font-style: normal; }
html:not(:lang(en)) .hero p { max-width: 28em; }
html:not(:lang(en)) h2 { font-size: clamp(27px, 2.6vw, 40px); letter-spacing: -.045em; }
html:not(:lang(en)) .rule-title { font-size: clamp(20px, 1.6vw, 25px); font-weight: 600; }
@media (min-width: 1600px) {
  .hero-photo { inset: 0 0 0 auto; width: min(66%, 1060px); right: max(0px, calc((100% - 1600px) / 2)); }
  .hero-photo::after { background: linear-gradient(90deg, #123c32, transparent 32%, transparent 92%, #123c32); }
}
@media (max-width: 960px) {
  .frame { width: calc(100% - 64px); }
  .rule-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 28px; }
  .hero-copy { width: 52%; }
  .hero-inner { min-height: 395px; }
  .button { gap: 7px; padding-inline: 14px; }
}
@media (max-width: 700px) {
  .frame { width: calc(100% - 40px); }
  .header-row { height: 61px; gap: 10px; }
  .brand { font-size: 24px; gap: 4px; }
  .brand svg { width: 27px; }
  .header-row nav { gap: 16px; font-size: 13px; }
  .header-row nav .nav-rules { display: none; }
  .hero { display: flex; flex-direction: column; }
  .hero-inner { order: -1; min-height: auto; padding-block: 34px 6px; }
  .hero-copy { width: 100%; max-width: 500px; }
  h1 { font-size: clamp(50px, 10.5vw, 69px); }
  html:not(:lang(en)) h1 { font-size: clamp(36px, 8.1vw, 53px); line-height: 1.15; }
  .hero p { max-width: 44ch; margin-top: 14px; font-size: 15px; line-height: 1.5; }
  .actions { margin-top: 19px; gap: 9px; }
  .button { min-height: 43px; }
  .hero-photo { position: relative; z-index: 0; inset: auto; height: clamp(184px, 56vw, 295px); }
  .hero-photo img { object-position: 70% 63%; }
  .hero-photo::after { background: linear-gradient(180deg, #123c32, rgb(18 60 50 / .45) 9%, transparent 29%); }
  .rules { padding-block: 32px 44px; }
  .section-head { margin-bottom: 19px; }
  .rule-art { height: 55px; }
  .rule { padding-top: 8px; }
  .rack { --mj-tile-width: 25px; --mj-tile-height: 34px; }
  .rule-title { font-size: 21px; align-items: flex-start; }
  .rule-title svg { width: 14px; }
  .rule-description { font-size: 13px; }
}
@media (max-width: 470px) {
  .header-row nav .nav-learn { display: none; }
  .section-head { align-items: flex-end; }
  .section-head h2 { font-size: 30px; }
  .guide { gap: 4px; font-size: 12px; }
  .rule-list { gap: 22px 17px; }
  .rule-title { gap: 3px; }
  .rule-title svg { display: none; }
  html:not(:lang(en)) .rule-title { font-size: 19px; }
  html:not(:lang(en)) h2 { font-size: 25px; }
}
@media (max-width: 359px) {
  .frame { width: calc(100% - 32px); }
  .button { padding-inline: 10px; font-size: 13px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .rule-list { grid-template-columns: 1fr; gap: 16px; }
  .rule { display: grid; grid-template-columns: 83px 1fr; gap: 4px 10px; align-content: center; }
  .rule-art { grid-row: span 2; align-self: center; }
  .rule-description { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
