:root {
  --blue: #3333f0;
  --deep-blue: #0000c7;
  --red: #e63232;
  --ink: #000;
  --paper: #fff;
  --line: #d8d8e8;
  --soft: #f4f4fb;
  --muted: #5f5f70;
  --display: Arial Black, Arial, "Noto Sans JP", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
.preview-mode { overflow: hidden; background: #fff; }
.preview-mode body { overflow: hidden; background: #fff; }
.preview-mode .common-guide, .preview-mode .top-actions { display: none; }
.preview-mode .app-shell { min-height: 100vh; box-shadow: none; }
html { background: #e9e9f2; }
body { margin: 0; color: var(--ink); font-family: var(--body); background: #e9e9f2; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { width: 100%; max-width: 430px; min-height: 100dvh; margin: 0 auto; background: var(--paper); position: relative; overflow: hidden; box-shadow: 0 0 50px rgba(0,0,0,.12); }
.topbar { height: 68px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); }
.brand { border: 0; background: transparent; padding: 0; font: 900 26px/1 var(--display); letter-spacing: -2px; }
.logo-slashes { display: inline-flex; margin-left: 4px; letter-spacing: -4px; }
.logo-slashes i { color: var(--blue); font-style: normal; }
.logo-slashes i:nth-child(2) { color: var(--red); }
.logo-slashes i:nth-child(3) { color: var(--deep-blue); }
.top-actions { display: flex; gap: 9px; }
.icon-button, .avatar-button { width: 40px; height: 40px; border: 2px solid var(--ink); background: var(--paper); display: grid; place-items: center; }
.notification-button span { color: var(--red); font-size: 11px; }
.avatar-button { background: var(--blue); color: #fff; font-weight: 900; }
main { min-height: calc(100dvh - 140px); padding-bottom: 92px; }
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(430px, 100%); height: 74px; background: var(--paper); border-top: 2px solid var(--ink); display: grid; grid-template-columns: repeat(4, 1fr); z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
.nav-item { border: 0; background: transparent; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); }
.nav-item span { font: 900 21px/1 var(--display); }
.nav-item small { font-size: 10px; font-weight: 800; }
.nav-item.active { color: var(--blue); background: #eeeeff; }
.page { animation: enter .18s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } }
.flow-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--paper); }
.flow-progress span { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); }
.flow-progress i { width: 24px; height: 24px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 50%; background: var(--paper); font-size: 10px; font-style: normal; font-weight: 900; }
.flow-progress small { font-size: 9px; font-weight: 800; }
.flow-progress .done, .flow-progress .current { color: var(--blue); }
.flow-progress .done i { color: #fff; background: var(--blue); border-color: var(--blue); }
.flow-progress .current i { color: #fff; background: var(--red); border-color: var(--red); box-shadow: 0 0 0 3px #ffe3e3; }
.hero { min-height: 440px; color: var(--ink); padding: 28px 16px 24px; border-bottom: 2px solid var(--ink); position: relative; overflow: hidden; display: flex; align-items: flex-end; background: #f3eee6 url('assets/hero-six-night-option-c.png') center/cover no-repeat; }
.hero::after { content: "3 × 3"; position: absolute; right: -13px; bottom: -24px; font: 900 84px/1 var(--display); opacity: .16; letter-spacing: -8px; }
.hero-copy { position: relative; z-index: 2; width: 100%; text-shadow: 0 1px 2px rgba(255,255,255,.9); }
.eyebrow { font: 900 11px/1 var(--display); letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 10px; }
.hero h1, .display { font: 900 38px/.94 var(--display); letter-spacing: -2.2px; margin: 0; }
.hero p { max-width: 320px; font-weight: 700; font-size: 14px; line-height: 1.65; margin: 14px 0 0; }
.fixed-conditions { border-bottom: 1px solid var(--line); background: var(--soft); }
.fixed-conditions-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 0; }
.fixed-conditions-head strong { font-size: 11px; }
.fixed-conditions-head span { color: var(--muted); font-size: 9px; font-weight: 800; }
.filter-row { padding: 10px 16px 14px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chip { flex: none; border: 1.5px solid var(--ink); background: #fff; padding: 9px 12px; font-size: 12px; font-weight: 800; }
.chip.selected { color: #fff; background: var(--blue); border-color: var(--blue); }
.chip.selected i { color: #fff; margin-right: 5px; font-style: normal; }
.section { padding: 24px 16px; }
.section + .section { padding-top: 4px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.section-head h2 { font: 900 22px/1 var(--display); margin: 0; letter-spacing: -1px; }
.section-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.text-button { border: 0; background: transparent; color: var(--blue); font-weight: 900; font-size: 12px; }
.event-card { border: 2px solid var(--ink); margin-bottom: 18px; box-shadow: 5px 5px 0 var(--ink); background: #fff; }
.event-poster { padding: 16px; color: #fff; background: var(--red); display: grid; grid-template-columns: 84px 1fr; gap: 16px; }
.event-card:nth-child(even) .event-poster { background: var(--blue); }
.date-block { border-right: 2px solid rgba(255,255,255,.8); }
.month { font: 900 12px/1 var(--display); letter-spacing: 1px; }
.day { font: 900 58px/.9 var(--display); letter-spacing: -4px; }
.weekday { font-size: 11px; font-weight: 800; }
.event-kicker { font: 900 10px/1 var(--display); letter-spacing: 1px; opacity: .85; }
.event-poster h3 { font: 900 24px/1.05 var(--display); margin: 7px 0; letter-spacing: -1px; }
.event-poster p { margin: 0; font-size: 12px; font-weight: 700; }
.event-body { padding: 14px 16px 16px; }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.meta-item { border-left: 3px solid var(--blue); padding-left: 8px; }
.meta-item span { display: block; color: var(--muted); font-size: 10px; font-weight: 700; }
.meta-item strong { font-size: 13px; }
.availability { background: var(--soft); padding: 10px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; margin-bottom: 12px; }
.event-deadline { margin: -3px 0 12px; color: var(--muted); font-size: 10px; font-weight: 800; }
.dots { display: flex; gap: 4px; }
.dot { width: 10px; height: 10px; border: 1px solid var(--ink); background: #fff; border-radius: 50%; }
.dot.filled { background: var(--blue); }
.btn { width: 100%; border: 2px solid var(--ink); min-height: 50px; padding: 12px 16px; font-weight: 900; background: var(--blue); color: #fff; box-shadow: 3px 3px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.btn:active { transform: translate(3px,3px); box-shadow: none; }
.btn.secondary { background: #fff; color: var(--ink); }
.btn.danger { background: var(--red); }
.btn:disabled { background: #d3d3dc; color: #73737c; cursor: not-allowed; box-shadow: none; }
.back { position: absolute; top: 16px; left: 16px; width: 42px; height: 42px; z-index: 3; border: 2px solid #fff; background: #000; color: #fff; font-size: 20px; }
.notice { border: 2px solid var(--ink); padding: 13px; margin: 14px 0; font-size: 12px; line-height: 1.6; background: #eeeeff; }
.notice.red { background: #fff0f0; border-color: var(--red); }
.common-guide { padding: 24px 16px; color: #fff; background: linear-gradient(135deg, var(--blue) 0 72%, var(--deep-blue) 72% 100%); border-top: 7px solid var(--red); border-bottom: 7px solid var(--red); }
.common-guide h2 { margin: 5px 0 8px; font: 900 25px/1.1 var(--display); }
.common-guide > p:not(.eyebrow):not(.common-price-note) { margin: 0; color: rgba(255,255,255,.9); font-size: 12px; line-height: 1.65; }
.common-price { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 16px; }
.common-price > div { padding: 12px; color: var(--ink); background: #fff; }
.common-price > div:nth-child(2) { color: #fff; background: var(--red); }
.common-price span, .common-price strong { display: block; }
.common-price span { font-size: 10px; font-weight: 800; }
.common-price strong { margin-top: 3px; font: 900 24px/1 var(--display); }
.common-price-note { margin: 7px 0 14px; color: rgba(255,255,255,.82); font-size: 10px; }
.matching-steps { margin:26px -16px -24px; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); list-style:none; border-top:2px solid #fff; }
.matching-steps li { min-width:0; min-height:230px; position:relative; padding:18px 12px 16px; display:flex; flex-direction:column; border-right:2px solid #fff; overflow:hidden; }
.matching-steps li:last-child { border-right:0; }.matching-steps li:nth-child(2) { background:var(--red); }.matching-steps li:nth-child(3) { background:var(--ink); }
.matching-steps li > b { color:rgba(255,255,255,.22); font:900 54px/.8 var(--display); letter-spacing:-5px; }
.matching-steps li > small { margin-top:9px; color:#fff; font:900 8px/1 var(--display); letter-spacing:1.6px; }
.matching-steps li > strong { margin-top:auto; color:#fff; font:900 clamp(15px,4.6vw,20px)/1.08 var(--display); letter-spacing:-.07em; }
.matching-steps li > p { margin:10px 0 0; color:rgba(255,255,255,.75); font-size:8px; font-weight:800; line-height:1.45; }
.matching-steps li:not(:last-child)::after { content:"→"; position:absolute; right:8px; top:21px; color:#fff; font:900 15px/1 var(--display); }
.common-guide details { border-top: 1px solid rgba(255,255,255,.45); border-bottom: 1px solid rgba(255,255,255,.45); }
.common-guide summary { padding: 13px 0; cursor: pointer; font-size: 12px; font-weight: 900; }
.guide-details { padding: 0 0 6px; }
.guide-details p { margin: 0 0 10px; color: rgba(255,255,255,.9); font-size: 11px; line-height: 1.6; }
.team-card { border: 2px solid var(--ink); margin-bottom: 16px; overflow: hidden; }
.team-photos { display: grid; grid-template-columns: repeat(3, 1fr); height: 156px; }
.person { position: relative; overflow: hidden; border-right: 2px solid #fff; background: #ddd; }
.person:last-child { border: 0; }
.person img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Match head size and top clearance to the black-T-shirt portrait. */
.preview-mode .person img[src$="man-short-hoodie-smile.jpg"] {
  transform: scale(1.75);
  transform-origin: 50% 22%;
}
.preview-mode .person img[src$="man-oversized-white-shirt.jpg"] {
  transform: scale(1.5);
  transform-origin: 50% 4%;
}
.person-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: #d9d9e2; color: var(--muted); font: 900 30px/1 var(--display); }
.person span { position: absolute; left: 6px; bottom: 6px; color: #fff; font-size: 11px; font-weight: 900; text-shadow: 0 1px 5px #000; }
.team-content { padding: 14px; border-top: 7px solid var(--red); }
.team-content.men { border-color: var(--blue); }
.team-title { display: flex; justify-content: space-between; align-items: flex-start; }
.team-title h3 { font: 900 20px/1 var(--display); margin: 0; }
.team-title strong { color: var(--red); font-size: 12px; }
.team-content p { font-size: 12px; line-height: 1.6; margin: 10px 0; }
.team-content .team-label { margin: 0 0 5px; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.team-content .team-relation { margin: 14px 0 10px; font-size: 15px; font-weight: 900; }
.team-profile { margin: 0 0 12px; border-top: 1px solid var(--line); }
.team-profile > div { display: grid; grid-template-columns: 76px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.team-profile dt { color: var(--muted); font-size: 10px; font-weight: 800; }
.team-profile dd { margin: 0; font-size: 12px; font-weight: 800; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { border: 1px solid var(--ink); padding: 5px 7px; font-size: 10px; font-weight: 800; background: #fff; }
.vote-actions { display: grid; grid-template-columns: .6fr 1.4fr; gap: 8px; margin-top: 14px; }
.vote-actions .btn { font-size: 12px; }
.vote-actions .btn.skip { background: #fff; color: #000; box-shadow: none; }
.candidate-count { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.candidate-count strong { font-size: 14px; }
.candidate-count span { color: var(--muted); font-size: 9px; }
.vote-status { margin: 14px 0; border: 2px solid var(--ink); background: var(--soft); }
.vote-status-head { display: flex; justify-content: space-between; align-items: center; padding: 11px; border-bottom: 1px solid var(--ink); }
.vote-status-head span, .vote-status-head strong { display: block; }
.vote-status-head span { color: var(--muted); font-size: 9px; font-weight: 900; }
.vote-status-head strong { margin-top: 3px; font-size: 13px; }
.vote-status-head b { color: var(--blue); font-size: 11px; }
.vote-status ul { margin: 0; padding: 0 11px; list-style: none; }
.vote-status li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.vote-status li:last-child { border: 0; }
.vote-status li strong { color: var(--muted); }
.vote-status li strong.yes { color: var(--blue); }
.page-title { padding: 22px 16px 16px; border-bottom: 2px solid var(--ink); }
.page-title h1 { font: 900 32px/1 var(--display); margin: 4px 0; letter-spacing: -1.5px; }
.page-title p { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.status-card { border: 2px solid var(--ink); padding: 15px; margin-bottom: 14px; }
.status-card.blue { border-left: 9px solid var(--blue); }
.status-card.red { border-left: 9px solid var(--red); }
.status-top { display: flex; justify-content: space-between; align-items: center; }
.status-label { font-size: 11px; font-weight: 900; color: var(--blue); }
.status-card h3 { margin: 8px 0 5px; font-size: 17px; }
.status-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.progress { height: 8px; background: #e3e3ec; margin: 13px 0 8px; }
.progress > span { display: block; height: 100%; background: var(--blue); }
.match-banner { padding: 30px 16px; color: #fff; background: linear-gradient(135deg, var(--blue) 0 50%, var(--red) 50%); text-align: center; }
.match-banner .display { font-size: 46px; }
.six-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid #fff; margin: 20px auto; max-width: 330px; }
.six-grid img { width: 100%; height: 105px; object-fit: cover; border: 1px solid #fff; }
.check-list { list-style: none; padding: 0; margin: 16px 0; }
.check-list li { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 12px 2px; font-size: 13px; }
.check { color: var(--blue); font-weight: 900; }
.pending { color: var(--red); font-weight: 900; }
.price-total { color: #fff; background: var(--ink); padding: 18px; margin-bottom: 14px; }
.price-total span { font-size: 11px; }
.price-total strong { display: block; font: 900 34px/1 var(--display); margin-top: 6px; }
.price-row { display: flex; justify-content: space-between; padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.price-row.auth { color: var(--red); font-weight: 800; }
.payment-method { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.payment-method span, .payment-method strong { display: block; }
.payment-method span { color: var(--muted); font-size: 10px; }
.payment-method strong { margin-top: 4px; font-size: 13px; }
.payment-method button { border: 0; color: var(--blue); background: transparent; font-size: 11px; font-weight: 900; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.5; padding: 14px 0; }
.consent input { width: 21px; height: 21px; flex: none; accent-color: var(--blue); }
.team-summary { background: var(--blue); color: #fff; padding: 18px 16px; }
.team-summary .eyebrow { opacity: .8; }
.team-summary h2 { font: 900 27px/1 var(--display); margin: 0 0 6px; }
.team-total { display: inline-grid; place-items: center; min-width: 28px; height: 28px; margin-left: 5px; border-radius: 50%; color: #fff; background: var(--blue); font: 900 14px/1 var(--display); vertical-align: 4px; }
.team-picker-section { padding-top: 16px; padding-bottom: 16px; }
.team-picker-head { display: flex; justify-content: space-between; margin-bottom: 9px; font-size: 11px; }
.team-picker-head span { color: var(--muted); }
.team-picker { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.my-team-option { min-width: 0; padding: 11px; text-align: left; border: 2px solid var(--line); background: #fff; }
.my-team-option.active { border-color: var(--ink); background: var(--soft); box-shadow: 3px 3px 0 var(--ink); }
.my-team-option span, .my-team-option strong, .my-team-option small { display: block; }
.my-team-option span { color: var(--blue); font-size: 9px; font-weight: 900; }
.my-team-option strong { overflow: hidden; margin-top: 5px; font: 900 14px/1 var(--display); text-overflow: ellipsis; white-space: nowrap; }
.my-team-option small { margin-top: 6px; color: var(--muted); font-size: 9px; }
.invite-row { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.mini-avatar { width: 48px; height: 48px; flex: none; object-fit: cover; border: 2px solid var(--ink); }
.mini-placeholder { display: grid !important; place-items: center; background: var(--soft); font-size: 20px; font-weight: 900; }
.invite-row div { flex: 1; }
.invite-row strong, .invite-row span { display: block; }
.invite-row span { color: var(--muted); font-size: 11px; margin-top: 3px; }
.tag-ok { color: var(--blue) !important; font-weight: 900; }
.tag-wait { color: var(--red) !important; font-weight: 900; }
.demo-tools { margin-top: 26px; padding: 15px; border: 2px dashed var(--line); }
.demo-tools > strong { font-size: 13px; }
.demo-tools p { color: var(--muted); font-size: 11px; line-height: 1.6; }
.toast { position: fixed; left: 50%; bottom: 88px; transform: translate(-50%, 20px); background: #000; color: #fff; width: min(390px, calc(100% - 32px)); padding: 13px 16px; font-size: 12px; font-weight: 800; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.empty { padding: 60px 24px; text-align: center; }
.empty .display { font-size: 54px; color: var(--blue); }
.empty p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.empty-state { padding: 48px 16px; text-align: center; border: 2px dashed var(--line); }
.empty-state strong { display: block; font-size: 17px; }
.empty-state p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 8px 0 18px; }
.date-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:16px 0; }
.date-option { min-height:165px; padding:14px; display:grid; grid-template-columns:1fr auto; text-align:left; color:var(--ink); background:#fff; border:2px solid var(--ink); box-shadow:3px 3px 0 var(--ink); }
.date-option span,.date-option strong,.date-option b,.date-option em,.date-option small { display:block; }
.date-option span { color:var(--muted); font-size:10px; font-weight:900; }
.date-option strong { grid-column:1; margin-top:3px; font:900 54px/.9 var(--display); letter-spacing:-3px; }
.date-option b { grid-column:2; grid-row:1/3; align-self:center; width:32px; height:32px; display:grid; place-items:center; color:#fff; background:var(--ink); border-radius:50%; font-size:12px; }
.date-option em { grid-column:1/3; margin-top:10px; font:900 17px/1 var(--display); font-style:normal; }
.date-option small { grid-column:1/3; margin-top:8px; color:var(--muted); font-size:9px; }
.date-option.selected { color:#fff; background:var(--blue); box-shadow:3px 3px 0 var(--red); }
.date-option.selected span,.date-option.selected small { color:rgba(255,255,255,.8); }.date-option.selected b { color:var(--blue); background:#fff; }
.selection-note { margin:0 0 14px; color:var(--muted); text-align:center; font-size:10px; font-weight:700; }
.schedule-result { min-height:300px; padding:30px; display:grid; place-content:center; text-align:center; color:#fff; background:var(--blue); border:3px solid var(--ink); box-shadow:7px 7px 0 var(--ink); margin-bottom:24px; }
.schedule-result span { font-size:13px; font-weight:900; }.schedule-result strong { font:900 112px/.85 var(--display); letter-spacing:-8px; }.schedule-result b { margin-top:10px; font-size:20px; }.schedule-result em { margin-top:20px; padding:10px 22px; color:var(--ink); background:#fff; font:900 28px/1 var(--display); font-style:normal; }
.chat-question { border: 2px solid var(--ink); padding: 15px; margin-bottom: 14px; }
.chat-question > span { color: var(--blue); font: 900 10px/1 var(--display); letter-spacing: 1px; }
.chat-question h3 { margin: 8px 0 13px; font-size: 15px; }
.choice-row, .rating-row { display: flex; gap: 7px; flex-wrap: wrap; }
.choice-row button, .rating-row button { min-height: 44px; padding: 8px 11px; border: 1.5px solid var(--ink); background: var(--paper); font-size: 11px; font-weight: 800; }
.choice-row button:focus, .choice-row button:hover, .rating-row button:focus, .rating-row button:hover { color: #fff; background: var(--blue); }
.chat-question textarea { width: 100%; min-height: 72px; margin-top: 10px; padding: 10px; border: 1.5px solid var(--ink); resize: vertical; font: 13px/1.5 var(--body); }
.rating-row button { width: 44px; padding: 0; font: 900 16px/1 var(--display); }
@media (min-width: 700px) {
  body { padding: 24px 0; }
  .app-shell { min-height: calc(100dvh - 48px); border: 2px solid #000; }
  .bottom-nav { bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.choice-row button.selected,
.rating-row button.selected {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}
