/* AnySport home (/, /en/) — design A, 2026-12-04: doors by audience, one card per app with a real screen, a row for
   hosts, a row for facilities, four small blocks, the apps again at the end. Cream ground of the K2 icons, charcoal
   text; each app keeps its own colour. Text sizes in rem (checked at 320 px with 160 % text). The contact pages keep
   site.css. Generated pages: scripts/build-home.mjs. */
:root {
  --bg: #f6f1e7; --card: #fffdf8; --ink: #2a2622; --sub: #5e5850; --faint: #6f685e; --line: #e6dccb; --soft: #efe7d8;
  --btn: #2a2622; --btn-ink: #fff; --acc: #2a2622; --bezel: #1b1e23;
  --hoopday: #e8641e; --shuttleday: #1b7a4c; --tennisallday: #1f6fb2; --soccerday: #b3246b; --spikeday: #0f7570;
  --shadow: 0 0 0 .5px rgba(42, 38, 34, .06), 0 1px 2px rgba(42, 38, 34, .04), 0 8px 24px rgba(42, 38, 34, .06);
  --dev-shadow: 0 24px 60px rgba(20, 20, 30, .18), 0 4px 12px rgba(20, 20, 30, .08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif; color: var(--ink); background: var(--bg);
  line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; line-break: strict; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { word-break: keep-all; overflow-wrap: anywhere; }
h1 { font-size: 3.25rem; line-height: 1.28; letter-spacing: -.015em; font-weight: 800; }
h2 { font-size: 2rem; line-height: 1.4; font-weight: 800; letter-spacing: -.005em; }
h3 { font-size: 1.125rem; line-height: 1.5; font-weight: 700; }
p { font-size: 1rem; }
.lead { font-size: 1.125rem; color: var(--sub); }
.note { font-size: .875rem; color: var(--faint); }
.eyebrow { font-size: .875rem; font-weight: 700; letter-spacing: .04em; color: var(--sub); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }


/* header: logo + one button (text links stay small; on phones they move to the footer / menu) */
.head { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid var(--line); }
.head-in { max-width: 1200px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 900; font-size: 1.1875rem; letter-spacing: -.02em; text-decoration: none; min-width: 0; }
.dots { display: inline-flex; gap: 4px; flex: none; }
.dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: var(--hoopday); } .dots i:nth-child(2) { background: var(--shuttleday); }
.dots i:nth-child(3) { background: var(--tennisallday); } .dots i:nth-child(4) { background: var(--soccerday); }
.dots i:nth-child(5) { background: var(--spikeday); }
.head nav { margin-left: auto; display: flex; gap: 22px; }
.head nav a { font-size: .9375rem; color: var(--sub); text-decoration: none; white-space: nowrap; padding: 10px 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 999px;
  background: var(--btn); color: var(--btn-ink); font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap; }
.btn.sm { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.btn.lg { min-height: 56px; padding: 0 36px; font-size: 1.0625rem; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.more { font-weight: 700; font-size: .9375rem; text-decoration: none; color: var(--acc); }
.more::after { content: " ›"; }

/* device frames (screens at their natural 600:1304 ratio) */
.phone { background: var(--bezel); border-radius: 30px; padding: 6px; box-shadow: var(--dev-shadow); }
.phone img { border-radius: 24px; width: 100%; aspect-ratio: 600 / 1304; }
.phone.cb img { aspect-ratio: 585 / 1266; }
.pc { background: var(--bezel); border-radius: 14px; padding: 9px; box-shadow: var(--dev-shadow); }
.pc img { border-radius: 6px; width: 100%; aspect-ratio: 1440 / 900; }
.combo { position: relative; padding: 0 0 6% 0; }
.combo .pc { width: 86%; }
.combo .phone { position: absolute; right: 0; bottom: 0; width: 25%; }
.pair { display: flex; gap: 6%; justify-content: center; align-items: flex-end; }
.pair .phone { width: 40%; max-width: 280px; }
.pair .phone:nth-child(2) { margin-bottom: 8%; }

/* sections and rows */
.sec { padding: 104px 0; }
.sec.tint { background: var(--card); }
.sec-h { text-align: center; margin: 0 auto 48px; max-width: 40em; }
.sec-h p { color: var(--sub); margin-top: 8px; }
.row { display: grid; grid-template-columns: 6fr 5fr; gap: 72px; align-items: center; }
.row.rev { grid-template-columns: 5fr 6fr; }
.row.rev .media { order: 2; }
.row + .row { margin-top: 112px; }
.row .text { max-width: 30em; }
.row .text h2 { margin: 6px 0 16px; }
.row .text .more, .row .text .btn { margin-top: 20px; }
.points { list-style: none; margin-top: 18px; display: grid; gap: 8px; }
.points li { position: relative; padding-left: 1.4em; font-size: .9375rem; color: var(--sub); }
.points li::before { content: ""; position: absolute; left: .2em; top: .62em; width: .5em; height: .5em; border-radius: 50%; background: var(--dotc, var(--acc)); }

/* small blocks */
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feat { background: var(--card); border-radius: 18px; padding: 24px 22px; box-shadow: var(--shadow); }
.sec.tint .feat { background: var(--bg); box-shadow: none; }
.feat h3 { margin-bottom: 6px; }
.feat p { font-size: .9375rem; color: var(--sub); line-height: 1.7; }
.feat .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; margin-bottom: 14px; }
.feat .ico svg { width: 22px; height: 22px; }

.cta { text-align: center; }
.cta h2 { margin-bottom: 10px; }
.cta p { color: var(--sub); }
.cta .btn { margin-top: 26px; }
.cta .note { margin-top: 12px; }

/* footer with grouped columns */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: .875rem; color: var(--sub); }
.foot-cols { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; }
.foot h4 { font-size: .8125rem; color: var(--ink); margin-bottom: 10px; letter-spacing: .04em; }
.foot ul { list-style: none; display: grid; gap: 6px; }
.foot a { color: var(--sub); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .8125rem; color: var(--faint); }

/* tablet / phone */
@media (max-width: 960px) {
  h1 { font-size: 2.375rem; }
  h2 { font-size: 1.625rem; }
  .sec { padding: 72px 0; }
  .row, .row.rev { grid-template-columns: 1fr; gap: 32px; }
  .row.rev .media { order: 0; }
  .row + .row { margin-top: 72px; }
  .feats { grid-template-columns: 1fr 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap, .head-in { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.375rem; }
  .lead { font-size: 1rem; }
  .sec { padding: 56px 0; }
  .row + .row { margin-top: 56px; }
  .feats { grid-template-columns: 1fr; }
  .head nav { display: none; }
  .head .btn.sm { margin-left: auto; }
  .btn.lg { width: 100%; padding: 0 16px; }
  .phone { padding: 4px; border-radius: 20px; } .phone img { border-radius: 16px; }
  .pc { padding: 5px; border-radius: 9px; } .pc img { border-radius: 4px; }
}
@media (max-width: 380px) {
  h1 { font-size: 1.625rem; } h2 { font-size: 1.25rem; }
  .head-in { flex-wrap: wrap; row-gap: 4px; }
  .foot-cols { grid-template-columns: 1fr; }
}

/* ---- page ---- */
.hero { padding: 88px 0 24px; text-align: center; }
.hero .lead { max-width: 33em; margin: 18px auto 0; }
/* three doors, one per audience (first screen) */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 48px auto 0; max-width: 1040px; text-align: left; }
.door { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: center; background: var(--card); border-radius: 20px;
  padding: 22px 22px; box-shadow: var(--shadow); text-decoration: none; }
.door .ico { grid-column: 1; grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; }
.door .ico svg { width: 24px; height: 24px; }
.door b { grid-column: 2; font-size: 1.125rem; line-height: 1.4; }
.door span { grid-column: 2; font-size: .875rem; color: var(--sub); line-height: 1.6; }
.door::after { content: "›"; grid-column: 3; grid-row: 1 / span 2; font-size: 1.5rem; color: var(--faint); }

/* the family: one card per app with a real screen */
.apps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.app { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.app .shot { background: var(--tint); padding: 22px 22px 0; display: flex; justify-content: center; height: 300px; overflow: hidden; }
.app .shot .phone { width: 168px; flex: none; align-self: flex-start; border-radius: 26px 26px 0 0; padding-bottom: 0; box-shadow: none; }
.app .shot .phone img { border-radius: 21px 21px 0 0; }
.app .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.app .name { display: flex; align-items: center; gap: 10px; }
.app .name img { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.app .name b { font-size: 1.0625rem; line-height: 1.3; display: block; }
.app .name small { font-size: .8125rem; font-weight: 700; color: var(--c); display: block; line-height: 1.3; }
.app p { font-size: .875rem; color: var(--sub); line-height: 1.65; margin-top: 6px; flex: 1; }
.app .btn { margin-top: 12px; min-height: 44px; font-size: .9375rem; background: var(--c); }
.hd { --c: #c4500e; --tint: #fbeadf; } .sd { --c: #1b7a4c; --tint: #e2f1e8; } .ta { --c: #1f6fb2; --tint: #e3edf8; }
.sc { --c: #b3246b; --tint: #f8e3ee; } .sp { --c: #0f7570; --tint: #dff1ef; }
.app.tile { display: none; border: 1.5px dashed var(--line); background: transparent; box-shadow: none; justify-content: center; padding: 20px; gap: 8px; text-decoration: none; font-size: .9375rem; color: var(--sub); }
.app.tile b { color: var(--ink); }
.req { margin-top: 20px; text-align: center; font-size: .9375rem; color: var(--sub); }
.req a { font-weight: 700; color: var(--ink); }

.sports { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.sports a { font-size: .875rem; font-weight: 700; text-decoration: none; padding: 9px 14px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
  min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.sports a i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); display: block; }
.row .find { display: block; margin-top: 14px; font-size: .9375rem; }

.cta-end { padding: 112px 0; }
.fam-big { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.fam-big a { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 999px; padding: 8px 18px 8px 8px; text-decoration: none;
  box-shadow: var(--shadow); font-weight: 700; font-size: .9375rem; min-height: 48px; }
.fam-big img { width: 34px; height: 34px; border-radius: 9px; }

@media (max-width: 1100px) { .apps { grid-template-columns: repeat(3, 1fr); } .app.tile { display: flex; } .req { display: none; } }
@media (max-width: 960px) { .doors { grid-template-columns: 1fr; max-width: 560px; } .hero { padding: 56px 0 16px; } }
@media (max-width: 600px) {
  .hero { padding: 36px 0 8px; }
  .doors { margin-top: 28px; gap: 10px; }
  .door { padding: 16px; }
  .apps { grid-template-columns: 1fr 1fr; gap: 12px; }
  .app .shot { height: 190px; padding: 14px 14px 0; }
  .app .shot .phone { width: 108px; border-radius: 18px 18px 0 0; }
  .app .shot .phone img { border-radius: 14px 14px 0 0; }
  .app .body { padding: 14px 14px 16px; }
  .app p { display: none; }
  .app .name b { font-size: .9375rem; word-break: keep-all; }
  .app .name img { width: 30px; height: 30px; }
  .cta-end { padding: 64px 0; }
}
@media (max-width: 380px) {
  .apps { grid-template-columns: 1fr; }
  .app { flex-direction: row; }
  .app .shot { height: auto; width: 38%; flex: none; padding: 12px 10px 0; align-items: flex-start; }
  .app .shot .phone { width: 100%; }
  .app .body { min-width: 0; padding: 12px; }
  .app .name { gap: 8px; } .app .name > div { min-width: 0; }
  .app .name img { display: none; }
  .app .btn { white-space: normal; padding: 6px 12px; line-height: 1.35; text-align: center; }
}

/* additions to the mock: anchors under the sticky header, 44 px targets for text links, the phone header */
section[id] { scroll-margin-top: 80px; }
.head nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0; }
.logo { min-height: 44px; }
.foot ul { gap: 0; }
.foot li a, .req a, .row .find a { display: inline-flex; align-items: center; min-height: 44px; }
.foot .logo { color: var(--ink); min-height: 44px; }
.foot .about { margin-top: 4px; }
.app .btn:focus-visible, .btn:focus-visible, .door:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.hero h1 span { display: block; }
.app .shot .phone img { aspect-ratio: 400 / 870; }
.phone.cb img { aspect-ratio: 300 / 650; }
.pc img { aspect-ratio: 1600 / 1000; }
.pair .phone img { aspect-ratio: 560 / 1218; }
@media (max-width: 600px) {
  .head nav { display: flex; margin-left: auto; }
  .head nav a:not(.keep) { display: none; }
  .head .btn.sm { margin-left: 0; }
  .sports a { padding: 9px 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .door, .app, .fam-big a { transition: transform .15s, box-shadow .15s; }
  .door:hover, .fam-big a:hover { transform: translateY(-2px); }
}
/* line breaks: Japanese breaks at phrase ends where the browser can, and short texts are balanced */
.lead, .door span, .app p, .feat p, .sec-h p, .row .text p, .points li, .foot .about, .cta p { word-break: auto-phrase; text-wrap: pretty; }
.lead, .sec-h p, .cta p { text-wrap: balance; }
.hero .lead { max-width: 44em; }
.logo { white-space: nowrap; flex: none; }
.head nav a.keep { min-width: 44px; }
@media (max-width: 600px) { .head-in { gap: 12px; } .head nav { gap: 12px; } .head .btn.sm { padding: 0 16px; } }
/* the headline always fits its longest line on a phone, also with large text */
@media (max-width: 600px) { .hero h1 { font-size: min(2rem, 8.6vw); } }
@media (max-width: 380px) { .hero h1 { font-size: min(1.625rem, 8.6vw); } .head-in { flex-wrap: wrap; row-gap: 0; } }
.foot li a { min-width: 44px; }
