/* ③ top page: the frame of pattern 1 / MV 2 runs down the whole page.
   Left menu stays (PC); the MV row is the switching photo cards + Instagram and the latest posts;
   below it every section is a panel on the green ground (ivory and near-black in turn). */
:root {
  --kp-main: #0b5a3c; --kp-deep: #042a1c; --kp-soft: #f3efe6; --kp-ink: #141b17; --kp-ink2: #59635d;
  --kp-cta: #c9561a; --kp-cta-deep: #a94512;
  --kp-font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --kp-en: "Barlow Condensed", "Oswald", sans-serif;
  --kp-gutter: clamp(20px, 4.4vw, 64px);
  --dk: #0b1f16; --iv2: #f3efe6;
}

/* logo: JOYX's current mark (the green flag) in its own colors; the footer shows the flag with the company name */
.lg { width: 72px; aspect-ratio: 176 / 200; background: url(/img/logo-joyx.png) center / contain no-repeat; -webkit-mask: none; mask: none; }
.ig-av .lg { width: 26px; }
.kp-ft .lg { width: 240px; aspect-ratio: 600 / 207; background-image: url(/img/logo-joyx-full.png); }
@media (min-width: 1180px) and (max-height: 800px) { .pt-l > .pt-logo .lg { width: 60px; } }
@media (max-width: 1179px) { .pt-bar .pt-logo .lg { width: 48px; } }
@media (max-width: 639px) { .pt-bar .pt-logo .lg { width: 44px; } }

/* ---------- frame ---------- */
.pt-site { --fr: 12px; --lw: 228px; --rw: 316px; display: grid; grid-template-columns: var(--lw) minmax(0, 1fr); gap: var(--fr); padding: var(--fr); align-items: start; }
.pt-site > .pt-l { position: sticky; top: var(--fr); height: calc(100svh - 2 * var(--fr)); }
.pt-nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.pt-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--fr); min-width: 0; }
.pt-mv { display: grid; grid-template-columns: minmax(0, 1fr) var(--rw); gap: var(--fr); height: max(calc(100svh - 2 * var(--fr)), 696px); }
.ph { display: inline-block; }
/* language list behind the globe of the bar (tablet) */
.pt-glbm { position: relative; flex: none; margin-left: auto; }
.pt-glbm > summary { list-style: none; margin: 0; cursor: pointer; }
.pt-glbm > summary::-webkit-details-marker { display: none; }
.pt-glbm-l { position: absolute; top: calc(100% + 10px); right: 0; z-index: 5; display: grid; gap: 2px; min-width: 150px; padding: 6px; border-radius: 8px; background: #fff; color: var(--ink); box-shadow: 0 12px 32px rgba(4, 42, 28, .18); }
.pt-glbm-l a { display: flex; align-items: center; height: 42px; padding: 0 14px; border-radius: 4px; font: 600 14px/1 var(--sans); letter-spacing: .02em; }
.pt-glbm-l a.is-on { background: var(--green-p); color: var(--green-d); }
@media (max-width: 374px) { .pt-bar .pt-glbm { display: none; } }

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(64px, 6.4vw, 96px) var(--kp-gutter); border-radius: 8px; }
.sec--iv { background: var(--iv2); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(197, 160, 70, .35); }
.sec--dk { background: var(--dk); color: #fff; box-shadow: inset 0 0 0 1px rgba(197, 160, 70, .3); }
.sh { display: grid; justify-items: center; gap: 12px; margin-bottom: clamp(36px, 4vw, 52px); text-align: center; }
.sh-en { padding-left: .32em; font: 600 13px/1 var(--en); letter-spacing: .32em; color: var(--gold-d); }
.sec--dk .sh-en { color: var(--gold-l); }
.sh-ja { padding-left: .08em; font: 700 clamp(26px, 2.4vw, 34px)/1.5 var(--sans); letter-spacing: .08em; word-break: auto-phrase; }
.sh-ja::after { content: ""; display: block; width: 40px; height: 1px; margin: 18px auto 0; background: var(--gold); }
.sh-catch { margin-top: 6px; padding-left: .08em; font: 600 clamp(18px, 1.6vw, 22px)/1.7 var(--sans); letter-spacing: .08em; color: var(--green-d); }
.sh-lead { font-size: 14.5px; line-height: 1.8; color: var(--sub); }
.sec--dk .sh-lead { color: rgba(255, 255, 255, .76); }
.more { margin-top: clamp(40px, 4.4vw, 56px); }

/* results of the week */
.rs-bar, .rs-list { max-width: 1040px; margin: 0 auto; }
.rs-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; }
.rs-wk { font: 500 14px/1.5 var(--sans); color: var(--sub); }
.rs-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.rs-tab { height: 38px; padding: 0 20px; border: 0; border-radius: 999px; background: none; color: var(--sub); font: 700 13.5px/1 var(--sans); letter-spacing: .06em; cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.rs-tab:hover { color: var(--green); }
.rs-tab[aria-selected="true"] { background: var(--green); color: #fff; }
.rs-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 16px; }
.rs-t { padding: 28px 30px 14px; border-radius: 6px; background: #fff; box-shadow: 0 10px 30px rgba(4, 42, 28, .06); }
.rs-t[hidden] { display: none; }
.rs-meta { display: flex; align-items: center; gap: 12px; }
.rs-tour { display: inline-grid; place-items: center; height: 24px; padding: 0 10px; border-radius: 3px; background: var(--green-d); color: #fff; font: 700 11.5px/1 var(--sans); letter-spacing: .08em; }
.rs-meta time { font: 600 15px/1 var(--en); letter-spacing: .12em; color: var(--sub); }
.rs-name { margin-top: 12px; font: 700 17px/1.6 var(--sans); letter-spacing: .04em; word-break: auto-phrase; text-wrap: pretty; }
.rs-rows { margin-top: 10px; }
.rs-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; border-top: 1px solid var(--line); }
.rs-rows li.is-win { margin: 0 -14px; padding: 0 14px; border-top-color: transparent; border-radius: 4px; background: var(--gold-p); }
.rs-rows li.is-win + li { border-top-color: transparent; }
.rs-pl { font: 700 16px/1.4 var(--sans); letter-spacing: .06em; transition: color .25s ease; }
.rs-pl:hover { color: var(--green); }
.rs-pl small { margin-left: .4em; font-size: 12px; font-weight: 500; color: var(--sub); }
.rs-rk { font: 600 26px/1 var(--en); letter-spacing: .04em; color: var(--green-dd); }
.rs-rows li.is-win .rs-rk { font: 700 15px/1 var(--sans); letter-spacing: .16em; color: var(--gold-d); }

/* players with a win this year */
.pr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 20px; max-width: 1120px; margin: 0 auto; }
.pr-c { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.pr-w, .rs-name { overflow-wrap: anywhere; }
.pr-ph { position: relative; display: block; aspect-ratio: 244 / 185; overflow: hidden; border-radius: 4px; background: #1a2b22; }
.pr-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.pr-c:hover .pr-ph img { transform: scale(1.04); }
.pr-bd { position: absolute; left: 10px; top: 10px; padding: 5px 8px 4px; border-radius: 3px; background: var(--gold); color: var(--green-dd); font: 600 12px/1 var(--en); letter-spacing: .16em; }
.pr-tx { display: grid; justify-items: center; gap: 6px; text-align: center; }
.pr-n { padding-left: .12em; font: 700 18px/1.4 var(--sans); letter-spacing: .12em; }
.pr-en { padding-left: .22em; font: 500 12px/1 var(--en); letter-spacing: .22em; color: var(--gold-l); }
.pr-w { margin-top: 6px; font: 500 12.5px/1.65 var(--sans); color: rgba(255, 255, 255, .78); word-break: auto-phrase; text-wrap: balance; }
.pr-w b { display: block; margin-bottom: 4px; font: 600 14px/1 var(--en); letter-spacing: .14em; color: #fff; }

/* JOYX OPEN */
.op-in { display: grid; gap: clamp(28px, 3.6vw, 44px); max-width: 1080px; margin: 0 auto; }
.op-ph { overflow: hidden; border-radius: 6px; background: var(--green-dd); }
.op-ph img { width: 100%; height: auto; }
.op-tx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px clamp(32px, 4.4vw, 64px); align-items: start; }
.op-vol { font: 600 16px/1 var(--en); letter-spacing: .24em; color: var(--gold-d); }
.op-lead { margin-top: 16px; font-size: 15px; line-height: 2; text-align: justify; }
.op-facts { border-top: 1px solid #d9d4c4; }
.op-facts div { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: center; min-height: 56px; border-bottom: 1px solid #d9d4c4; }
.op-facts dt { font: 600 13px/1 var(--en); letter-spacing: .22em; color: var(--gold-d); }
.op-facts dd { margin: 0; font: 700 15px/1.5 var(--sans); letter-spacing: .04em; }
.op-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; }
.op-steps li { position: relative; display: grid; justify-items: center; gap: 12px; text-align: center; font: 700 12.5px/1.4 var(--sans); letter-spacing: .04em; color: var(--sub); }
.op-steps li::before { content: ""; position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--iv2); }
.op-steps li::after { content: ""; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: var(--green); }
.op-steps li:first-child::after { content: none; }
.op-steps li.is-on { color: var(--green-dd); }
.op-steps li.is-on::before { background: var(--gold); box-shadow: 0 0 0 4px var(--iv2), 0 0 0 5px var(--gold); }

/* supporters and partners */
.sp-gs { display: grid; gap: 44px; max-width: 1100px; margin: 0 auto; }
.sp-h { display: grid; justify-items: center; gap: 8px; margin-bottom: 20px; font: 700 15px/1.4 var(--sans); letter-spacing: .1em; text-align: center; }
.sp-en { padding-left: .3em; font: 600 12px/1 var(--en); letter-spacing: .3em; color: var(--gold-l); }
.sp-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.sp-logos a { display: grid; place-items: center; width: 250px; height: 108px; padding: 14px 20px; border-radius: 6px; background: #fff; transition: opacity .25s ease; }
.sp-logos a:hover { opacity: .85; }
.sp-logos img { width: auto; height: auto; max-width: 210px; max-height: 78px; }
.sp-logos .is-open a { padding: 14px 24px; border: 1px dashed rgba(220, 194, 131, .7); background: rgba(255, 255, 255, .04); color: var(--gold-l); font: 700 14px/1.6 var(--sans); letter-spacing: .06em; text-align: center; word-break: auto-phrase; }
.sp-logos .is-open a:hover { opacity: 1; background: rgba(220, 194, 131, .1); }

/* golf lounge */
.lo-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; max-width: 1080px; margin: 0 auto; }
.lo-ph { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lo-ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.lo-lead { font-size: 15px; line-height: 2; text-align: justify; }
.lo-ft { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.lo-ft li { display: grid; align-content: center; gap: 2px; min-height: 72px; padding: 12px 14px; border-radius: 6px; background: #fff; text-align: center; }
.lo-ft b { font: 700 14px/1.5 var(--sans); letter-spacing: .06em; color: var(--green-d); }
.lo-ft span { font-size: 12.5px; line-height: 1.6; color: var(--sub); word-break: auto-phrase; text-wrap: balance; }
.lo-info { margin-top: 22px; border-top: 1px solid #d9d4c4; }
.lo-info div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid #d9d4c4; font-size: 13.5px; line-height: 1.7; }
.lo-info dt { font-weight: 700; color: var(--green-d); }
.lo-info dd { margin: 0; }
.lo-info a { font-weight: 700; }

/* ---------- parts kit: closing band, footer, contact page ---------- */
.kp-btn { letter-spacing: .06em; }
.kp-band { border-radius: 8px; }
.kp-band__en { padding-left: .32em; font-size: 13px; letter-spacing: .32em; color: var(--gold-l); }
html[data-band="b"] .kp-band__en { color: var(--gold-d); }
.kp-band__ttl { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: .08em; }
.kp-band__ttl::after { content: ""; display: block; width: 40px; height: 1px; margin: 18px auto 0; background: var(--gold); }
.kp-band__lead { font-size: 15px; }
html[data-band="a"] .kp-band__item, html[data-band="c"] .kp-band__item { width: min(100%, 400px); }
html[data-band="a"] .kp-band__item .kp-btn, html[data-band="c"] .kp-band__item .kp-btn { width: 100%; }
.op-lead, .lo-lead { word-break: auto-phrase; text-wrap: pretty; text-align: left; }
.kp-ft { padding: 56px var(--kp-gutter) 26px; border-radius: 8px; background: var(--ivory); box-shadow: inset 0 0 0 1px rgba(197, 160, 70, .28); }
.kp-ft .lg { width: 240px; }
.kp-ft__nav ul { grid-template-columns: repeat(3, auto); }
.kp-ft__nav a { white-space: nowrap; }
.kp-ft__addr { word-break: auto-phrase; }
.kp-ct { padding: 72px var(--kp-gutter) clamp(64px, 8vw, 104px); border-radius: 8px; }
.kp-ct__en { padding-left: .32em; font-size: 13px; letter-spacing: .32em; color: var(--gold-d); }
.kp-ct__tel, .kp-ct__notes, .kp-ct__main { border-radius: 8px; }

/* ---------- tablet / phone ---------- */
@media (min-width: 1180px) and (max-height: 800px) {
  .pt-mv { height: max(calc(100svh - 2 * var(--fr)), 660px); }
}
/* the fix-mode dock of the demo copy sits right of the PC left menu */
@media (min-width: 1180px) {
  html body :is(.dr-dockrow, .dr-tip, .dr-alert) { left: 256px; }
  html body .dr-bar { left: 252px; }
}
@media (max-width: 1279px) {
  .pr-grid { gap: 32px 16px; }
}
@media (max-width: 1179px) {
  .pt-site { grid-template-columns: minmax(0, 1fr); padding-top: 88px; }
  .pt-bar { position: fixed; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
  .pt-bar.is-away { transform: translateY(calc(-100% - 16px)); }
  .is-dr .pt-bar { transform: none; }
  .pt-mv { height: max(calc(100svh - 100px), 620px); }
}
@media (max-width: 1023px) {
  .pr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .op-tx { grid-template-columns: minmax(0, 1fr); }
  .lo-in { grid-template-columns: minmax(0, 1fr); }
  .lo-tx { max-width: 640px; width: 100%; margin: 0 auto; }
}
@media (max-width: 899px) {
  .pt-site { --fr: 10px; padding: 86px 10px 10px; }
  .pt-mv { display: flex; flex-direction: column; height: auto; }
  .sec { padding: 60px 20px; }
  .sh { margin-bottom: 32px; }
  .sh-ja { font-size: min(26px, 7vw); }
  .sh-catch { font-size: 17px; }
  .op-lead, .lo-lead { word-break: normal; text-wrap: wrap; text-align: justify; }
  .rs-bar { justify-content: center; }
  .rs-t { padding: 22px 18px 10px; }
  .rs-rows li.is-win { margin: 0 -10px; padding: 0 10px; }
  .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .pr-n { font-size: 16px; letter-spacing: .08em; }
  .pr-en { font-size: 10.5px; letter-spacing: .14em; }
  .pr-w { font-size: 12px; }
  .op-steps li { font-size: 12px; }
  .sp-gs { gap: 36px; }
  .sp-logos { gap: 8px; }
  .sp-logos li { width: calc(50% - 4px); }
  .sp-logos a { width: auto; height: 92px; padding: 12px; }
  .sp-logos img { max-width: 100%; max-height: 64px; }
  .sp-logos .is-open { width: 100%; }
  .sp-logos .is-open a { height: 64px; }
  .lo-ft span { font-size: 12px; }
  .kp-band__lead { font-size: 14.5px; }
  .kp-ft__nav ul { grid-template-columns: repeat(2, auto); }
  .kp-ct { padding: 56px 16px 64px; }
}
@media (max-width: 640px) {
  html[data-cta="6"] .kp-btn__face { padding: 14px 46px; }
  html[data-cta="6"] .kp-btn__t { font-size: 18px; }
  .kp-band__ttl { font-size: min(24px, 6.6vw); }
  .kp-ft__nav li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .kp-ct { padding: 44px 10px 56px; }
  .kp-ct__main { padding: 26px 16px; border-radius: 8px; }
  .kp-ct__steps li { gap: 6px; font-size: 13px; white-space: nowrap; }
  .kp-ct__steps li + li::before { width: 16px; margin: 0 6px; }
  .kp-ct__steps b { width: 28px; height: 28px; font-size: 14px; }
  .kp-kinds { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .kp-kind span { min-height: 50px; font-size: 15px; }
}
@media (max-width: 639px) {
  .pt-site { padding-top: 80px; }
  .rs-wk { width: 100%; text-align: center; }
  .op-facts div { grid-template-columns: 68px minmax(0, 1fr); }
  .lo-info div { grid-template-columns: 68px minmax(0, 1fr); }
}
@media (max-width: 374px) {
  .sec { padding-left: 16px; padding-right: 16px; }
  .rs-tab { padding: 0 14px; }
  .lo-ft { grid-template-columns: minmax(0, 1fr); }
  .lo-info div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0; }
  html[data-cta="6"] .kp-btn__face { padding: 14px 40px; }
  html[data-cta="6"] .kp-btn__t { font-size: 16px; }
  html[data-cta="6"] .kp-btn__ic { right: 16px; }
  .kp-check { gap: 8px; font-size: 13.5px; letter-spacing: 0; white-space: nowrap; }
  .kp-kind span { padding: 10px 8px; font-size: 14px; }
}
