/* TEEREX CONNECT U — ミニアプリ・招待・公開サイト共通（v2 2026-10-27）
 * デザインの決まり
 *  - 色: Tee Orange #FF6A13（面・主ボタン。文字はインク）／ Ink #1A1714 ／ キャンバス #EFEFEC ／ 罫線 #DAD9D4
 *  - 角丸は 4px まで（ボタン・入力・パネル 4px、バッジ 2px）。影は使わず細い罫線で区切る
 *  - 数字・日付・料金は Archivo（可変・狭幅）。日本語はシステムのゴシック
 *  - 予定の画面の上部に「状況の帯」（オレンジ）。4 席の埋まり方と進み具合（募集→日程→コース→支払い→確定→当日）
 */
@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+2022, U+2026, U+2212; }
:root {
  --o: #FF6A13;            /* Tee Orange */
  --o-press: #EE5A05;
  --o-deep: #B84206;       /* 白地の上のオレンジ文字 */
  --o-tint: #FFEEE3;
  --ink: #1A1714;
  --ink-2: #4A4640;
  --muted: #6F6B64;
  --faint: #A29E97;
  --canvas: #EFEFEC;
  --paper: #FFFFFF;
  --paper-2: #F7F7F5;
  --line: #DAD9D4;
  --line-2: #E8E7E3;
  --line-strong: #1A1714;
  --red: #C8161D;
  --red-tint: #FBE6E6;
  --green: #16784A;
  --green-tint: #E3F1E9;
  --amber: #9A5B00;
  --amber-tint: #FFF1D6;
  --line-green: #06C755;
  --r: 4px;
  --r-sm: 2px;
  --f-ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --f-num: "Archivo", var(--f-ja);
  --tabs-h: 60px;
  /* 旧名（ページ内のインライン指定の互換） */
  --cn-main: var(--o); --cn-main-dark: var(--o-deep); --cn-main-soft: var(--o-tint); --cn-dark: var(--ink); --cn-muted: var(--muted); --cn-border: var(--line); --cn-canvas: var(--canvas); --cn-accent: var(--red); --cn-ok: var(--green);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Archivo", var(--f-ja); font-size: 15px; line-height: 1.7; color: var(--ink); background: var(--canvas); font-feature-settings: "palt" 0; -webkit-font-smoothing: antialiased; }
a { color: var(--o-deep); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 8px; font-weight: 700; letter-spacing: .01em; }
p { margin: 0 0 10px; }
small { color: var(--muted); }
strong, b { font-weight: 700; }
input, select, textarea, button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--o); outline-offset: 2px; }
.cn-num { font-family: var(--f-num); font-variant-numeric: tabular-nums; font-stretch: 85%; }

/* 入力 */
input[type=text], input[type=email], input[type=password], input[type=date], input[type=tel], input[type=number], input:not([type]), select, textarea { width: 100%; padding: 11px 12px; border: 1px solid #C9C7C1; border-radius: var(--r); background: var(--paper); min-height: 48px; font-size: 16px; appearance: none; -webkit-appearance: none; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%231A1714' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
input:disabled { background: var(--paper-2); color: var(--muted); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--o); flex: none; }
label { display: block; font-weight: 700; font-size: 13px; margin: 14px 0 0; color: var(--ink-2); }
label input, label select, label textarea { margin-top: 5px; font-weight: 400; color: var(--ink); }
.cn-help { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.cn-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.cn-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--ink); margin: 12px 0 0; line-height: 1.6; }
.cn-check input { margin: 1px 0 0; }

/* ヘッダ（TEEREX ｜ CONNECT U） */
.cn-top { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; height: 52px; padding: 0 6px; background: var(--paper); border-bottom: 1px solid var(--line); }
.cn-top__back { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; border-radius: var(--r); }
.cn-top__back svg { width: 22px; height: 22px; }
.cn-top__back:active { background: var(--paper-2); }
.cn-lockup { display: inline-flex; align-items: center; gap: 9px; justify-self: center; text-decoration: none; line-height: 0; }
.cn-lockup__mark { height: 19px; width: auto; display: block; }
.cn-lockup__div { width: 1px; height: 16px; background: var(--line); }
.cn-lockup__word { height: 10.5px; width: auto; display: block; }
.cn-top__right { display: flex; justify-content: flex-end; }
.cn-top__user { display: inline-flex; text-decoration: none; }
.cn-ava { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; line-height: 1; }
.cn-mockbar { background: var(--ink); color: #E9E6E1; font-size: 11px; text-align: center; padding: 4px 10px; letter-spacing: .02em; }
.cn-mockbar::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--o); margin-right: 7px; vertical-align: 1px; }
.cn-main { max-width: 560px; margin: 0 auto; padding: 16px 16px calc(var(--tabs-h) + 40px); }
.cn-wide .cn-main { max-width: 820px; }
.cn-h1 { font-size: 22px; margin: 4px 0 16px; }
.cn-h1 small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 2px; letter-spacing: 0; }
.cn-h2 { font-size: 15px; margin: 24px 0 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cn-h2 small { font-weight: 400; font-size: 12.5px; }

/* 下のタブ */
.cn-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--paper); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.cn-tabs a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--tabs-h); font-size: 10.5px; font-weight: 700; color: #8E8A83; text-decoration: none; letter-spacing: .02em; }
.cn-tabs__icon { display: block; width: 24px; height: 24px; }
.cn-tabs__icon svg { width: 24px; height: 24px; display: block; }
.cn-tabs a[aria-current=page] { color: var(--ink); }
.cn-tabs a[aria-current=page]::before { content: ""; position: absolute; top: -1px; left: 50%; width: 28px; margin-left: -14px; height: 3px; background: var(--o); }
.cn-tabs a.cn-tabs__new .cn-tabs__icon { width: 40px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--o); color: var(--ink); border-radius: var(--r); }
.cn-tabs a.cn-tabs__new .cn-tabs__icon svg { width: 20px; height: 20px; }
.cn-tabs a.cn-tabs__new { color: var(--ink); }
.cn-tabs a.cn-tabs__new[aria-current=page]::before { display: none; }

/* パネル */
.cn-card { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 0 0 12px; }
.cn-card__eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -16px -16px 14px; padding: 10px 16px; border-bottom: 1px solid var(--line-2); font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.cn-card__title { font-size: 17px; margin: 0 0 6px; }
.cn-card__note { font-size: 13px; color: var(--muted); line-height: 1.65; }
.cn-card > :last-child, .cn-card__note:last-child { margin-bottom: 0; }
a.cn-card { color: inherit; text-decoration: none; }
details.cn-card > summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.cn-card > summary::-webkit-details-marker { display: none; }
details > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); margin: -4px 4px 0 10px; flex: none; }
details[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
details > summary { cursor: pointer; display: flex; align-items: center; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.cn-sub { margin-top: 10px; font-size: 13px; }
.cn-sub > summary { color: var(--muted); font-weight: 700; }

/* ボタン */
.cn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: var(--r); border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font-weight: 700; font-size: 15px; line-height: 1.3; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; text-align: center; transition: background-color .12s; }
.cn-btn:active { background: var(--paper-2); }
.cn-btn--primary { background: var(--o); border-color: var(--o); color: var(--ink); }
.cn-btn--primary:active { background: var(--o-press); border-color: var(--o-press); }
.cn-btn--ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.cn-btn--ink:active { background: #000; }
.cn-btn--line { background: var(--line-green); border-color: var(--line-green); color: #fff; }
.cn-btn--danger { color: var(--red); border-color: #E3A9AB; }
.cn-btn--ghost { background: transparent; border-color: transparent; color: var(--o-deep); padding-left: 6px; padding-right: 6px; text-decoration: underline; text-decoration-thickness: 1px; }
.cn-btn--sm { min-height: 38px; padding: 0 13px; font-size: 13.5px; white-space: nowrap; }
.cn-btn--block { display: flex; width: 100%; margin-top: 14px; }
.cn-btn[disabled], .cn-btn[aria-disabled=true] { opacity: .45; cursor: not-allowed; }
.cn-btn svg { width: 18px; height: 18px; flex: none; }
.cn-inline { display: inline; }
.cn-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cn-actions .cn-inline { display: contents; }
.cn-sticky { position: fixed; left: 0; right: 0; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom)); padding: 10px 16px; background: var(--paper); border-top: 1px solid var(--line); z-index: 25; }
.cn-sticky .cn-btn { max-width: 528px; margin: 0 auto; }
.cn-flash { padding: 11px 14px; border-radius: var(--r-sm); margin-bottom: 12px; font-size: 14px; font-weight: 700; border-left: 3px solid; }
.cn-flash--ok { background: var(--green-tint); color: #0F5434; border-color: var(--green); }
.cn-flash--ng { background: var(--red-tint); color: #8A1015; border-color: var(--red); }
.cn-badge { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: var(--r-sm); font-size: 11.5px; font-weight: 700; line-height: 1.6; background: #ECEBE7; color: var(--ink-2); vertical-align: middle; white-space: nowrap; letter-spacing: .02em; }
.cn-badge--ok { background: var(--green-tint); color: #0F5434; }
.cn-badge--warn { background: var(--o-tint); color: #8E3204; }
.cn-badge--ng { background: var(--red-tint); color: #8A1015; }
.cn-badge--info { background: #ECEBE7; color: var(--ink); }
.cn-badge--muted { background: #ECEBE7; color: var(--muted); }
.cn-badge--main { background: var(--o); color: var(--ink); }

/* 状況の帯（予定の画面の上） */
.cn-band { background: var(--o); color: var(--ink); margin: -16px -16px 16px; padding: 18px 16px 16px; }
.cn-band__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cn-band__title { font-size: 21px; font-weight: 700; line-height: 1.35; margin: 0; }
.cn-band__meta { font-size: 12.5px; margin-top: 3px; color: rgba(26,23,20,.78); }
.cn-band__when { display: flex; align-items: flex-end; gap: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(26,23,20,.22); }
.cn-band__date { font-family: var(--f-num); font-stretch: 72%; font-weight: 700; font-size: 40px; line-height: .9; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.cn-band__date small { font-family: var(--f-ja); font-size: 13px; font-weight: 700; color: var(--ink); margin-left: 4px; letter-spacing: 0; }
.cn-band__date--tbd { font-family: var(--f-ja); font-size: 20px; font-stretch: normal; line-height: 1.2; }
.cn-band__place { font-size: 13px; line-height: 1.5; min-width: 0; }
.cn-band__place b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.cn-band--muted { background: #D9D7D2; }
.cn-band--done { background: var(--ink); color: #fff; }
.cn-band--done .cn-band__meta, .cn-band--done .cn-band__date small { color: rgba(255,255,255,.7); }
.cn-band--done .cn-band__when { border-color: rgba(255,255,255,.2); }
.cn-band--done .cn-track__seg { background: rgba(255,255,255,.25); }
.cn-band--done .cn-track__seg.is-done { background: var(--o); }
.cn-band--done .cn-track li { color: rgba(255,255,255,.9); }
.cn-band--done .cn-seats__s { border-color: rgba(255,255,255,.6); }
.cn-band--done .cn-seats__s.is-on { background: var(--o); color: var(--ink); border-color: var(--o); }

/* 4 席 */
.cn-seats { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.cn-seats__s { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border: 1.5px dashed rgba(26,23,20,.55); border-radius: var(--r-sm); font-size: 11px; font-weight: 700; line-height: 1; }
.cn-seats__s.is-on { background: var(--ink); color: #fff; border: 1.5px solid var(--ink); }
.cn-seats__n { font-family: var(--f-num); font-stretch: 80%; font-weight: 700; font-size: 15px; margin-left: 6px; font-variant-numeric: tabular-nums; }
.cn-seats--sm { gap: 3px; }
.cn-seats--sm .cn-seats__s { width: 11px; height: 11px; font-size: 0; border-width: 1.5px; }
.cn-seats--sm .cn-seats__s:not(.is-on) { border-color: #B9B6AF; }
.cn-seats--sm .cn-seats__s.is-on { background: var(--o); border-color: var(--o); }
.cn-seats--sm .cn-seats__n { font-size: 13px; margin-left: 5px; }

/* 進み具合（募集→日程→コース→支払い→確定→当日） */
.cn-track { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; margin: 14px 0 0; padding: 0; }
.cn-track li { font-size: 10.5px; font-weight: 700; line-height: 1.3; color: rgba(26,23,20,.55); text-align: left; letter-spacing: .02em; }
.cn-track__seg { display: block; height: 4px; background: rgba(26,23,20,.18); margin-bottom: 5px; }
.cn-track li.is-done { color: var(--ink); }
.cn-track li.is-done .cn-track__seg { background: var(--ink); }
.cn-track li.is-now { color: var(--ink); }
.cn-track li.is-now .cn-track__seg { background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 9px); }
.cn-band--done .cn-track li.is-done .cn-track__seg { background: var(--o); }

/* Coordinator（次にやること） */
.cn-next { position: relative; background: var(--ink); color: #fff; border-radius: var(--r); padding: 16px; margin: 0 0 12px; }
.cn-next__who { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; color: #CFCAC2; letter-spacing: .04em; }
.cn-next__who::before { content: ""; width: 7px; height: 7px; background: var(--o); }
.cn-next--ok .cn-next__who::before { background: #3BC67E; }
.cn-next--warn .cn-next__who::before { background: #FFB01F; }
.cn-next__head { font-size: 19px; margin: 6px 0 4px; }
.cn-next__text { font-size: 13.5px; color: #DEDAD3; margin: 0; }
.cn-next .cn-btn { margin-top: 14px; }
.cn-next--muted { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.cn-next--muted .cn-next__who, .cn-next--muted .cn-next__text { color: var(--muted); }
.cn-next--muted .cn-next__who::before { background: var(--faint); }

/* メンバー（4 席） */
.cn-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.cn-chip { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.cn-chip__avatar { display: inline-flex; width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--ink); color: #fff; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; line-height: 1; }
.cn-chip--connector .cn-chip__avatar { background: var(--o); color: var(--ink); }
.cn-chip__name { display: block; width: 100%; font-size: 12.5px; font-weight: 700; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cn-chip__name small { display: block; font-size: 10.5px; font-weight: 400; color: var(--muted); line-height: 1.4; }
.cn-chip--me { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cn-chip--empty { border-style: dashed; border-color: #C3C0BA; background: transparent; color: var(--faint); }
.cn-chip--empty .cn-chip__avatar { background: transparent; border: 1.5px dashed #C3C0BA; color: var(--faint); }
.cn-chip__ok, .cn-chip__ng { position: absolute; top: 8px; right: 8px; display: inline-flex; width: 16px; height: 16px; border-radius: 50%; font-size: 10px; font-weight: 700; align-items: center; justify-content: center; color: #fff; line-height: 1; }
.cn-chip__ok { background: var(--green); }
.cn-chip__ng { background: var(--red); }

/* リスト・表 */
.cn-list { list-style: none; margin: 0; padding: 0; }
.cn-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.cn-list li:first-child { border-top: 0; padding-top: 0; }
.cn-list a.cn-row { display: block; color: inherit; text-decoration: none; }
.cn-dl { display: grid; grid-template-columns: 6em 1fr; margin: 0; font-size: 14.5px; }
.cn-dl dt, .cn-dl dd { padding: 9px 0; border-top: 1px solid var(--line-2); margin: 0; }
.cn-dl dt { color: var(--muted); font-size: 13px; font-weight: 700; padding-top: 10px; }
.cn-dl dt:first-of-type, .cn-dl dt:first-of-type + dd { border-top: 0; padding-top: 0; }
.cn-dl small { font-size: 12.5px; }
.cn-dl dd small { display: block; line-height: 1.6; margin-top: 2px; }
.cn-dl dd { line-height: 1.6; }
.cn-yen { font-family: var(--f-num); font-stretch: 80%; font-size: 26px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.1; }
.cn-yen--accent { color: var(--red); }
.cn-deadline { font-weight: 700; color: var(--red); }
.cn-deadline__left { font-weight: 400; color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.cn-progress { height: 6px; background: var(--line-2); overflow: hidden; margin: 8px 0 2px; }
.cn-progress > span { display: block; height: 100%; background: var(--o); }
.cn-muted { color: var(--muted); }
.cn-center { text-align: center; }
.cn-sep { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.cn-small { font-size: 13px; }
.cn-xs { font-size: 12px; }
.cn-mt { margin-top: 10px; }
.cn-ok-text { color: var(--green); font-weight: 700; }
.cn-ng-text { color: var(--red); font-weight: 700; }
.cn-note-inline { font-size: 12.5px; color: var(--muted); }
.cn-empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.cn-empty .cn-btn { margin-top: 14px; }

/* 予定カード（ホーム・一覧） */
.cn-round { display: grid; grid-template-columns: 64px 1fr; gap: 0 14px; color: inherit; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 10px; }
.cn-round:active { background: var(--paper-2); }
.cn-round__date { grid-row: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: var(--r-sm); min-height: 64px; padding: 4px 2px; text-align: center; line-height: 1; }
.cn-round__date b { font-family: var(--f-num); font-stretch: 72%; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.cn-round__date small { font-size: 11px; font-weight: 700; color: var(--ink-2); margin-top: 5px; }
.cn-round__date--tbd { border-style: dashed; border-color: #B9B6AF; }
.cn-round__date--tbd b { font-family: var(--f-ja); font-size: 13px; font-stretch: normal; }
.cn-round__title { font-size: 15.5px; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; line-height: 1.4; }
.cn-round__meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.cn-round__next { grid-column: 1 / -1; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 13.5px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cn-round__next::after { content: ""; width: 7px; height: 7px; border-top: 1.6px solid var(--ink); border-right: 1.6px solid var(--ink); transform: rotate(45deg); flex: none; margin-right: 3px; }
.cn-round--done { opacity: .78; }
.cn-round--done .cn-round__date { border-color: #B9B6AF; }

/* ホーム */
.cn-home-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin: 4px 0 14px; }
.cn-home-head h1 { font-size: 22px; margin: 0; }
.cn-home-head p { margin: 0; font-size: 12.5px; color: var(--muted); }
.cn-start { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; background: var(--o); color: var(--ink); text-decoration: none; border-radius: var(--r); padding: 16px; margin-bottom: 12px; }
.cn-start b { display: block; font-size: 17px; line-height: 1.4; }
.cn-start small { display: block; color: rgba(26,23,20,.75); font-size: 12.5px; margin-top: 2px; }
.cn-start__go { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; background: var(--ink); color: var(--o); border-radius: var(--r); }
.cn-start__go svg { width: 22px; height: 22px; }
.cn-start:active { background: var(--o-press); }
.cn-notice { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--o); border-radius: var(--r); padding: 12px 14px; margin-bottom: 12px; font-size: 13px; }
.cn-notice b { display: block; font-size: 14px; }

/* 選択肢（時期・予算・○△×） */
.cn-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.cn-choices--2 { grid-template-columns: 1fr 1fr; }
.cn-choices--3 { grid-template-columns: repeat(3, 1fr); }
.cn-choice { position: relative; margin: 0; }
.cn-choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; }
.cn-choice span { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 6px; border-radius: var(--r); border: 1px solid #C9C7C1; background: var(--paper); font-weight: 700; font-size: 14px; text-align: center; color: var(--ink); line-height: 1.35; }
.cn-choice span.is-hol { color: var(--o-deep); }
.cn-choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.cn-choice input:focus-visible + span { outline: 2px solid var(--o); outline-offset: 2px; }
.cn-poll { width: 100%; border-collapse: collapse; font-size: 14px; }
.cn-poll th, .cn-poll td { padding: 8px 4px; border-top: 1px solid var(--line-2); text-align: center; }
.cn-poll thead th { border-top: 0; font-size: 11.5px; color: var(--muted); font-weight: 700; padding-top: 0; }
.cn-poll th:first-child, .cn-poll td:first-child { text-align: left; }
.cn-poll .cn-ans { display: inline-flex; gap: 4px; }
.cn-poll .cn-ans label { margin: 0; position: relative; }
.cn-poll .cn-ans input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; }
.cn-poll .cn-ans span { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: var(--r); border: 1px solid #C9C7C1; font-weight: 700; font-size: 16px; color: var(--ink); background: var(--paper); }
.cn-poll .cn-ans input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.cn-poll .cn-ans input:focus-visible + span { outline: 2px solid var(--o); outline-offset: 2px; }
.cn-allok { background: var(--green-tint); }
.cn-mark { font-weight: 700; }
.cn-mark--ok { color: var(--green); } .cn-mark--maybe { color: var(--amber); } .cn-mark--ng { color: var(--red); } .cn-mark--none { color: #C3C0BA; }

/* コース候補 */
.cn-slot { display: block; color: inherit; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 8px; }
.cn-slot:active { background: var(--paper-2); }
.cn-slot--reco { border: 1.5px solid var(--ink); }
.cn-slot__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cn-slot__course { font-weight: 700; font-size: 15px; line-height: 1.45; }
.cn-slot__price { font-family: var(--f-num); font-stretch: 80%; font-weight: 700; font-size: 22px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cn-slot__price small { font-family: var(--f-ja); font-weight: 400; font-size: 12px; margin-left: 2px; }
.cn-slot__meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.cn-ribbon { display: inline-flex; background: var(--o); color: var(--ink); font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: var(--r-sm); margin-right: 6px; vertical-align: 2px; }

/* QR */
.cn-qr { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 16px; text-align: center; }
.cn-qr svg { width: 220px; height: 220px; }
.cn-qr__code { font-family: var(--f-num); font-stretch: 90%; font-size: 22px; font-weight: 700; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.cn-photo { width: 112px; height: 112px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
.cn-photo-row { display: flex; gap: 14px; align-items: center; }
.cn-photo-row > div { flex: 1; min-width: 0; }

/* 決済 */
#card-container { min-height: 90px; margin: 10px 0; }
.cn-pay-box { border: 1px dashed #C3C0BA; border-radius: var(--r); padding: 14px; background: var(--paper-2); }
.cn-pay-box--msg { white-space: pre-wrap; font-size: 14px; overflow-wrap: anywhere; }

/* 相談（AI Coordinator） */
.cn-scope { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; margin: -6px 0 14px; }
.cn-pill { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid #C9C7C1; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.cn-pill.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cn-chat { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.cn-bubble { max-width: 86%; padding: 10px 13px; border-radius: var(--r); font-size: 14.5px; line-height: 1.65; position: relative; word-break: break-word; }
.cn-bubble--ai { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-top-left-radius: 0; }
.cn-bubble--me { align-self: flex-end; background: var(--ink); color: #fff; border-top-right-radius: 0; }
.cn-bubble__time { display: block; font-size: 10.5px; opacity: .6; margin-top: 3px; color: inherit; font-family: var(--f-num); }
.cn-acard { align-self: flex-start; width: 92%; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--o); border-radius: var(--r); padding: 12px 14px; }
.cn-acard.is-closed { border-top-color: var(--faint); opacity: .85; }
.cn-acard--full { width: 100%; }
.cn-acard__eyebrow { font-size: 11.5px; font-weight: 700; color: var(--o-deep); letter-spacing: .02em; }
.cn-acard__title { font-size: 16px; margin: 2px 0 6px; }
.cn-acard__body { font-size: 14px; white-space: normal; }
.cn-acard__who { font-size: 12px; color: var(--muted); margin-top: 8px; }
.cn-chat__links { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.cn-quick { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cn-quick .cn-pill { white-space: nowrap; }
.cn-chat__form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; position: sticky; bottom: calc(var(--tabs-h) + 6px); background: var(--canvas); padding: 8px 0; }
.cn-chat__form textarea { min-height: 48px; resize: vertical; }
.cn-chat__form .cn-btn { min-height: 48px; }

/* LINE グループの見え方（テスト用。LINE の画面に寄せる） */
.cn-line { background: #8CABD8; border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 240px; }
.cn-line__row { display: flex; flex-direction: column; max-width: 88%; }
.cn-line__row--me { align-self: flex-end; align-items: flex-end; }
.cn-line__who { font-size: 11px; color: #1d2b44; margin: 0 4px 2px; }
.cn-line__who small { color: inherit; opacity: .7; }
.cn-line__msg { background: #fff; border-radius: 16px; padding: 8px 12px; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.cn-line__row--me .cn-line__msg { background: #8de055; }
.cn-line__flex { background: #fff; border-radius: 12px; overflow: hidden; width: 280px; max-width: 100%; }
.cn-line__flex-head { background: var(--o); line-height: 0; }
.cn-line__flex-head img { width: 100%; height: auto; display: block; }
.cn-line__flex-body { padding: 12px 14px; font-size: 13px; white-space: pre-wrap; }
.cn-line__flex-body b { display: block; font-size: 15px; margin-bottom: 4px; }
.cn-line__flex-eyebrow { color: var(--o-deep); font-size: 11px; font-weight: 700; }
.cn-line__flex-foot { display: flex; flex-direction: column; gap: 6px; padding: 0 12px 12px; }
.cn-line__flex-foot form { margin: 0; }
.cn-line__flex-foot .cn-btn { min-height: 38px; font-size: 13px; width: 100%; }
.cn-line__quote { font-size: 11px; color: #5b6475; border-left: 3px solid #c7cfdb; padding-left: 6px; margin-bottom: 4px; }
.cn-line__time { font-size: 10px; color: #2f3e57; margin: 2px 4px 0; }
.cn-line__sys { text-align: center; font-size: 11.5px; color: #1d2b44; }
/* ver1.21: LINE と同じ見え方（選択肢のマス・carousel・画像・クイックリプライ） */
.cn-line__flex--kilo { width: 244px; }
.cn-line__carousel { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; max-width: calc(100vw - 64px); }
.cn-line__carousel .cn-line__flex { flex: 0 0 auto; scroll-snap-align: start; }
.cn-lf__t { white-space: pre-wrap; word-break: break-word; margin: 2px 0; color: #4A4640; }
.cn-lf--xxs { font-size: 10px; } .cn-lf--xs { font-size: 11px; } .cn-lf--sm { font-size: 13px; } .cn-lf--md { font-size: 15px; } .cn-lf--lg { font-size: 17px; } .cn-lf--xl { font-size: 21px; }
.cn-lf--b { font-weight: 700; } .cn-lf--c { text-align: center; }
.cn-lf__sep { border: 0; border-top: 1px solid #E6E1D9; margin: 8px 0; }
.cn-lf__img { width: 100%; display: block; }
.cn-lf__box--v { display: flex; flex-direction: column; gap: 6px; }
.cn-lf__box--h { display: flex; gap: 6px; }
.cn-lf__box--h > * { flex: 1 1 0; min-width: 0; }
.cn-lf__form { margin: 0; }
.cn-lf__chip { width: 100%; min-height: 40px; border: 1px solid #D9D2C8; border-radius: 8px; background: #fff; font-weight: 700; font-size: 13px; color: var(--ink); padding: 6px 2px; cursor: pointer; line-height: 1.3; }
.cn-lf__chip.is-on { background: #FFF1E6; border-color: var(--o); }
.cn-lf__chip:active { background: #FFE2CC; }
.cn-line__imgmsg img { max-width: 220px; width: 100%; border-radius: 12px; display: block; background: #fff; }
.cn-line__quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 2px 2px; margin-top: 4px; }
.cn-line__quick form { margin: 0; flex: 0 0 auto; }
.cn-line__qbtn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #B9C7DC; background: #fff; color: #1d2b44; border-radius: 18px; padding: 7px 14px; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; min-height: 36px; }
.cn-line__qfile input[type=file] { display: none; }
.cn-line__qfile { display: flex; gap: 4px; align-items: center; }
.cn-line__qfile input[type=date] { min-height: 34px; font-size: 13px; border-radius: 8px; width: auto; }


/* スコア */
.cn-score { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; margin: 6px 0 10px; }
.cn-score label { margin: 0; font-size: 10.5px; text-align: center; color: var(--muted); font-weight: 700; font-family: var(--f-num); }
.cn-score input { min-height: 42px; padding: 6px 0; text-align: center; border-radius: var(--r-sm); font-size: 17px; font-family: var(--f-num); font-weight: 600; font-variant-numeric: tabular-nums; }
.cn-score-h { font-size: 12px; font-weight: 700; color: var(--ink-2); margin-top: 8px; letter-spacing: .04em; }
.cn-score-sum { display: flex; gap: 18px; font-size: 13px; color: var(--muted); align-items: baseline; }
.cn-score-sum b { font-family: var(--f-num); font-stretch: 80%; font-size: 24px; color: var(--ink); font-variant-numeric: tabular-nums; margin-left: 4px; }
.cn-board { width: 100%; border-collapse: collapse; font-size: 14px; }
.cn-board th, .cn-board td { padding: 9px 6px; border-top: 1px solid var(--line-2); text-align: left; }
.cn-board thead th { border-top: 0; font-size: 11.5px; color: var(--muted); padding-top: 0; }
.cn-board td.n, .cn-board th.n { text-align: right; font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.cn-board td.n { font-weight: 700; font-size: 16px; }

/* バッジ・プロフィール */
.cn-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; margin-top: 4px; }
.cn-badge-big { display: flex; flex-direction: column; justify-content: space-between; min-height: 104px; border-radius: var(--r); background: var(--o); color: var(--ink); font-size: 11.5px; font-weight: 700; padding: 8px 9px; line-height: 1.35; }
.cn-badge-big__cat { font-size: 10.5px; letter-spacing: .04em; }
.cn-badge-big__n { font-family: var(--f-num); font-stretch: 72%; font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.cn-badge-big.is-off { background: transparent; border: 1px dashed #C3C0BA; color: var(--faint); }
.cn-profile { display: flex; gap: 14px; align-items: center; }
.cn-profile__name { font-size: 20px; font-weight: 700; line-height: 1.3; }
.cn-avatar { width: 72px; height: 72px; flex: none; border-radius: var(--r); object-fit: cover; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; }
.cn-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r); }
.cn-stat { padding: 10px 8px; text-align: left; border-left: 1px solid var(--line); }
.cn-stat:first-child { border-left: 0; }
.cn-stat b { display: block; font-family: var(--f-num); font-stretch: 80%; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cn-stat small { font-size: 11px; font-weight: 700; }
.cn-stats > .cn-stat:nth-child(n+4) { border-top: 1px solid var(--line); }
.cn-stats > .cn-stat:nth-child(4) { border-left: 0; }

/* 送迎 */
.cn-car { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-top: 10px; }
.cn-car__head { font-weight: 700; }
.cn-car ol { margin: 6px 0 0; padding-left: 20px; font-size: 14px; }
.cn-sns { white-space: pre-wrap; font-size: 14px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin-top: 8px; }

/* ログイン・招待 */
.cn-login { background: var(--o); color: var(--ink); margin: -16px -16px 16px; padding: 34px 20px 26px; text-align: center; }
.cn-login__brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0 0 22px; line-height: 0; }
.cn-login__brand img:first-child { width: 230px; height: auto; }
.cn-login__brand img + img { width: 132px; height: auto; }
.cn-login__lead { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.cn-login__sub { font-size: 13px; margin: 0 auto; max-width: 30em; color: rgba(26,23,20,.8); }
.cn-invite { background: var(--o); color: var(--ink); margin: -16px -16px 16px; padding: 18px 16px 16px; }
.cn-invite__from { font-size: 12.5px; font-weight: 700; }
.cn-invite__title { font-size: 21px; font-weight: 700; line-height: 1.45; margin: 10px 0 14px; }
.cn-invite .cn-dl { font-size: 14px; }
.cn-invite .cn-dl dt, .cn-invite .cn-dl dd { border-color: rgba(26,23,20,.2); }
.cn-invite .cn-dl dt { color: rgba(26,23,20,.72); }
@media (min-width: 640px) { .cn-login, .cn-invite { margin: -22px 0 16px; border-radius: 0 0 var(--r) var(--r); } }

/* アイコン */
.cn-ico { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; flex: none; }

/* 公開サイトの旧クラス（site.css を読まないページ用の最低限） */
.cn-public { background: var(--paper); }
.cn-faq dt { font-weight: 700; margin-top: 16px; }
.cn-faq dd { margin: 4px 0 0; color: var(--ink-2); }
.cn-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cn-table th, .cn-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cn-table th { font-size: 12px; color: var(--muted); }

@media (min-width: 640px) {
  .cn-choices:not(.cn-choices--2):not(.cn-choices--3) { grid-template-columns: repeat(4, 1fr); }
  .cn-main { padding-top: 22px; }
  .cn-band { margin: -22px 0 16px; border-radius: 0 0 var(--r) var(--r); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.cn-top__brand { justify-self: center; display: inline-flex; text-decoration: none; }
.cn-grow { flex: 1; min-width: 0; }
.cn-filter { display: flex; gap: 8px; align-items: flex-end; padding: 12px 14px; }
.cn-filter label { margin: 0; }
.cn-flash + .cn-login, .cn-flash + .cn-invite { margin-top: 0; }
.cn-btn__sub { display: block; font-size: 11.5px; font-weight: 700; color: inherit; opacity: .78; margin-top: 1px; }
.cn-btn:has(.cn-btn__sub) { flex-direction: column; gap: 0; min-height: 52px; }
