/* =====================================================================
   AGORA Stoa デザインシステム（柱廊 / D-2056）
   設計：docs/design/AGORA_STOA_REMAKE_DESIGN_2026-10-21.md
   - 象牙（地）・墨（文字）・石（面と線）＋ オリーブ（差し色）。クラシックの外観ではゴールド。
   - 見出しは明朝、小さなラベルは Cormorant。影は使わず、線と面の濃淡で見せる。
   - アイコンは static/stoa/icons/*.svg を CSS mask で単色に塗る（.sx-ico）。
   - 色の直書きはここのトークン定義にだけ置く。ほかは var(--sx-…) を使う。
   ===================================================================== */

:root {
  --sx-ivory:   #FAF8F3;
  --sx-paper:   #FFFFFF;
  --sx-stone:   #F0ECE2;
  --sx-line:    #DDD7C9;
  --sx-ink:     #25231E;
  --sx-mute:    #6A6558;
  --sx-accent:  #556636;
  --sx-accent-soft: #E7ECD9;
  --sx-on-accent: #FFFFFF;
  --sx-radius:  8px;
  --sx-radius-lg: 14px;
  --sx-head-font: "Shippori Mincho", "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sx-label-font: "Cormorant Garamond", "Shippori Mincho", serif;
  --sx-wrap: 1200px;
  --sx-gutter: clamp(16px, 4vw, 32px);
}
:root.dark {
  --sx-ivory:   #12110E;
  --sx-paper:   #1A1914;
  --sx-stone:   #201F19;
  --sx-line:    #38362D;
  --sx-ink:     #F1EEE6;
  --sx-mute:    #ADA898;
  --sx-accent:  #B2C384;
  --sx-accent-soft: #272B1B;
  --sx-on-accent: #14130F;
}
/* クラシックの外観：角を落とし、差し色をゴールドへ（look-classic.css のトークンに従う） */
[data-look="classic"] {
  --sx-radius: 0;
  --sx-radius-lg: 0;
  --sx-accent: var(--look-point, #7F6330);
  --sx-accent-soft: transparent;
  --sx-on-accent: var(--look-on-ink, #FFFFFF);
}

body.sx-body { background: var(--sx-ivory); color: var(--sx-ink); }
.sx { font-feature-settings: "palt" 0; }
.sx a { color: inherit; }
.sx :focus-visible { outline: 2px solid var(--sx-accent); outline-offset: 2px; }
.sx-wrap { max-width: var(--sx-wrap); margin: 0 auto; padding-left: var(--sx-gutter); padding-right: var(--sx-gutter); }

/* ---- 線画アイコン（単色。currentColor で塗る） ---- */
.sx-ico {
  display: inline-block; flex: none; width: 1.25em; height: 1.25em; vertical-align: -0.22em;
  background: currentColor;
  -webkit-mask: var(--sx-i) center / contain no-repeat;
          mask: var(--sx-i) center / contain no-repeat;
}
.sx-ico.lg { width: 40px; height: 40px; }
.sx-ico.xl { width: 56px; height: 56px; }

/* ---- 小さなラベル（ASK / OFFER …）と見出し ---- */
.sx-eyebrow {
  font-family: var(--sx-label-font); font-weight: 600; font-size: 13px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--sx-accent); margin: 0 0 var(--space-3, 12px);
  display: flex; align-items: center; gap: 12px; font-variant-numeric: lining-nums;
}
.sx-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--sx-accent); }
.sx-h2 {
  font-family: var(--sx-head-font); font-weight: 600; font-size: clamp(22px, 3vw, 30px); line-height: 1.4;
  letter-spacing: .02em; color: var(--sx-ink); margin: 0 0 var(--space-2, 8px);
}
.sx-lead2 { margin: 0 0 var(--space-5, 20px); color: var(--sx-mute); font-size: 15px; line-height: 1.9; max-width: 40em; }

/* ---- ボタン（Stoa の面では、すべてこの形） ---- */
.sx .btn, .sx-btn {
  border-radius: var(--sx-radius); font-weight: 600; letter-spacing: .04em; box-shadow: none;
  border: 1px solid var(--sx-ink); background: transparent; color: var(--sx-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer;
  padding: 11px 22px; font-size: 15px; line-height: 1.4; transition: background .15s, color .15s, border-color .15s;
}
.sx .btn:hover, .sx-btn:hover { background: var(--sx-stone); text-decoration: none; }
.sx .btn.btn-primary, .sx-btn.is-primary { background: var(--sx-ink); color: var(--sx-ivory); border-color: var(--sx-ink); }
.sx .btn.btn-primary:hover, .sx-btn.is-primary:hover { background: var(--sx-accent); border-color: var(--sx-accent); color: var(--sx-on-accent); }
.sx .btn.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.sx .btn .sx-ico { width: 1.1em; height: 1.1em; vertical-align: -0.18em; }

/* ---- ヘッダー ---- */
.sx .guest-dashboard-layout { max-width: var(--sx-wrap); padding-left: var(--sx-gutter); padding-right: var(--sx-gutter); }
.sx .agora-header {
  background: color-mix(in srgb, var(--sx-ivory) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sx-line); border-image: none; box-shadow: none; height: 64px; gap: var(--space-2, 8px);
}
.sx .agora-header .logo { display: inline-flex; align-items: center; gap: 8px; color: var(--sx-accent); }
.sx .agora-header .logo img { height: 24px !important; }
.sx .agora-header .logo .sx-word { font-family: var(--sx-head-font); font-weight: 600; font-size: 16px; letter-spacing: .08em; white-space: nowrap; }
.sx .agora-header .logo .sx-word small { font: inherit; letter-spacing: inherit; color: inherit; display: inline; margin: 0 .35em 0 0; line-height: inherit; }   /* 「AGORA Stoa」を1行に（上下に折らない。D-2063） */
.sx .header-menu-btn { color: var(--sx-ink); border-radius: var(--sx-radius); }
.sx .header-menu-btn:hover { background: var(--sx-stone); }
.sx-burger { display: inline-block; width: 20px; height: 14px; position: relative; vertical-align: middle; }
.sx-burger::before, .sx-burger::after, .sx-burger i { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; }
.sx-burger::before { top: 0; } .sx-burger i { top: 6px; } .sx-burger::after { bottom: 0; }
.sx .stoa-topnav { gap: 2px; margin-left: var(--space-6, 24px); }
.sx .stoa-topnav a {
  color: var(--sx-ink); font-weight: 500; font-size: 14px; letter-spacing: .06em; border-radius: 0; padding: 22px 12px 20px;
  border-bottom: 2px solid transparent; transition: border-color .15s, color .15s;
}
.sx .stoa-topnav a:hover { background: transparent; border-bottom-color: var(--sx-accent); }
.sx .stoa-topnav a[aria-current="page"] { border-bottom-color: var(--sx-accent); color: var(--sx-accent); }

/* ---- 左のメニュー（Stoa 専用の木） ---- */
.sx .portal-sidenav {
  background: var(--sx-ivory); border-right: 1px solid var(--sx-line); box-shadow: none; width: 288px; padding: 0 0 var(--space-6, 24px); top: 64px;
}
.sx .portal-sidenav-backdrop { top: 64px; background: rgb(18 17 14 / 45%); }
.sx-nav-brand { padding: 22px 24px 18px; border-bottom: 1px solid var(--sx-line); }
.sx-nav-brand b { font-family: var(--sx-head-font); font-weight: 600; font-size: 17px; letter-spacing: .06em; display: block; }
.sx-nav-brand span { font-size: 12.5px; color: var(--sx-mute); line-height: 1.7; display: block; margin-top: 4px; }
.sx-nav-group { padding: 18px 0 6px; }
.sx-nav-group h3 {
  font-family: var(--sx-label-font); font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--sx-accent); margin: 0; padding: 0 24px 6px; display: flex; align-items: center; gap: 10px; font-variant-numeric: lining-nums;
}
.sx-nav-group h3::after { content: ""; flex: 1; height: 1px; background: var(--sx-line); }
.sx .nav-link, .sx-nav-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 24px; font-size: 14.5px; font-weight: 500; color: var(--sx-ink);
  border-left: 2px solid transparent; background: transparent; width: 100%; text-decoration: none; text-align: left; letter-spacing: .02em;
}
.sx .nav-link:hover, .sx-nav-link:hover { background: var(--sx-stone); color: var(--sx-ink); border-left-color: var(--sx-line); }
.sx .nav-link[aria-current="page"], .sx-nav-link[aria-current="page"] { border-left-color: var(--sx-accent); color: var(--sx-accent); background: var(--sx-accent-soft); font-weight: 600; }
.sx .nav-link .sx-ico { color: var(--sx-mute); width: 20px; height: 20px; }
.sx .nav-link[aria-current="page"] .sx-ico { color: var(--sx-accent); }
.sx-nav-link small { display: block; color: var(--sx-mute); font-size: 11.5px; font-weight: 400; margin-top: 1px; }

/* ---- お知らせの帯 ---- */
.sx .beta-notice {
  background: var(--sx-stone); border: 0; border-bottom: 1px solid var(--sx-line); color: var(--sx-mute);
  font-size: 12.5px; letter-spacing: .03em; padding: 8px var(--sx-gutter);
}
.sx .beta-notice strong { color: var(--sx-ink); font-weight: 600; }

/* ---- ヒーロー ---- */
.sx-hero { position: relative; background: var(--sx-ivory); border-bottom: 1px solid var(--sx-line); overflow: hidden; padding: 0; }
.sx-hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 72px); align-items: stretch; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(40px, 7vw, 88px); }
.sx-hero h1 {
  font-family: var(--sx-head-font); font-weight: 600; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; letter-spacing: .03em;
  color: var(--sx-ink); margin: 0 0 var(--space-4, 16px);
}
.sx-hero .sx-lead { font-size: 16px; line-height: 2; color: var(--sx-mute); max-width: 34em; margin: 0 0 var(--space-6, 24px); }
.sx-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--space-6, 24px); }
.sx-hero-cta .btn { padding: 14px 28px; }
.sx-search { display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px; }
.sx-search input { border: 1px solid color-mix(in srgb, var(--sx-ink) 38%, var(--sx-line)); background: var(--sx-paper); color: var(--sx-ink); font-size: 15px; padding: 13px 16px; min-width: 0; outline: none; flex: 1 1 220px; border-radius: var(--sx-radius); box-shadow: none; }
.sx-search input[inputmode="numeric"] { flex: 0 1 150px; }
.sx-search input:focus { border-color: var(--sx-accent); outline: 2px solid var(--sx-accent); outline-offset: 1px; }
.sx-search button { border: 1px solid var(--sx-ink); border-radius: var(--sx-radius); background: var(--sx-ink); color: var(--sx-ivory); padding: 0 24px; min-height: 46px; font-weight: 600; letter-spacing: .1em; cursor: pointer; font-size: 14px; }
.sx-search button:hover { background: var(--sx-accent); border-color: var(--sx-accent); color: var(--sx-on-accent); }   /* 検索は、欄ごとに枠・ボタンは別（1本につなげない。D-2065） */
.sx .stoa-chips { margin-top: 14px; gap: 8px; }
.sx .stoa-chip, .sx .stoa-badge {
  border-radius: 999px; border: 1px solid var(--sx-line); background: transparent; color: var(--sx-ink); font-size: 12.5px; padding: 4px 12px; letter-spacing: .03em; text-decoration: none; font-weight: 500;
}
[data-look="classic"] .sx .stoa-chip, [data-look="classic"] .sx .stoa-badge { border-radius: 0; }
.sx .stoa-chip:hover { background: var(--sx-stone); border-color: var(--sx-accent); }
.sx .stoa-chip.is-active { background: var(--sx-ink) !important; color: var(--sx-ivory) !important; border-color: var(--sx-ink) !important; }
.sx .stoa-badge { padding: 2px 10px; font-size: 12px; color: var(--sx-mute); background: var(--sx-stone); border-color: transparent; }
.sx .stoa-badge-offer { background: var(--sx-accent-soft); color: var(--sx-accent); }
.sx-hero .stoa-fine { margin-top: 14px; font-size: 12.5px; color: var(--sx-mute); line-height: 1.8; }

/* ヒーローの絵：写真（IMG-STO-201）が来るまでは、柱廊を線で描く。写真があれば、その上に重ねる */
.sx-hero-art {
  position: relative; min-height: 340px; border-radius: var(--sx-radius-lg); background: var(--sx-stone); border: 1px solid var(--sx-line); overflow: hidden;
}
.sx-hero-art::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 16%; bottom: 0;
  background: linear-gradient(90deg, transparent 36%, var(--sx-line) 36% 37%, var(--sx-paper) 37% 63%, var(--sx-line) 63% 64%, transparent 64%) repeat-x 0 0 / 25% 100%;
}
.sx-hero-art::after {
  content: ""; position: absolute; left: 4%; right: 4%; top: 6%; height: 10%;
  border-top: 1px solid var(--sx-line); border-bottom: 1px solid var(--sx-line);
  background: linear-gradient(180deg, var(--sx-paper), var(--sx-stone));
}
.sx-hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.sx-hero-art .sx-hero-badge {
  position: absolute; z-index: 2; left: 16px; bottom: 16px; right: 16px; background: color-mix(in srgb, var(--sx-paper) 94%, transparent); border: 1px solid var(--sx-line);
  border-radius: var(--sx-radius); padding: 12px 16px; font-size: 13px; line-height: 1.7; color: var(--sx-mute);
}
.sx-hero-badge b { color: var(--sx-ink); font-family: var(--sx-head-font); font-weight: 600; letter-spacing: .04em; }

/* ---- 本文のセクション ---- */
.sx .portal-main { padding-top: 0; gap: 0; padding-bottom: 72px; }
.sx-sec { padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--sx-line); }
.sx-sec:last-child { border-bottom: 0; }
.sx .section-label, .sx .stoa-section-title {
  font-family: var(--sx-head-font); font-weight: 600; font-size: clamp(20px, 2.6vw, 26px); letter-spacing: .03em; color: var(--sx-ink); text-transform: none; margin: 0 0 var(--space-3, 12px);
  padding-left: 14px; border-left: 2px solid var(--sx-accent); line-height: 1.4;
}
.sx .section-label a { font-family: inherit; font-size: 13px; font-weight: 500; color: var(--sx-accent); letter-spacing: .04em; }
.sx .stoa-section-lead { color: var(--sx-mute); font-size: 15px; line-height: 1.9; margin: 0 0 var(--space-5, 20px); }

/* 信頼の帯 */
.sx-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--sx-line); background: var(--sx-paper); }
.sx-trust-item { padding: 22px var(--sx-gutter); display: flex; gap: 14px; align-items: flex-start; border-right: 1px solid var(--sx-line); }
.sx-trust-item:last-child { border-right: 0; }
.sx-trust-item .sx-ico { width: 30px; height: 30px; color: var(--sx-accent); margin-top: 2px; }
.sx-trust-item b { display: block; font-family: var(--sx-head-font); font-weight: 600; font-size: 15px; letter-spacing: .04em; margin-bottom: 2px; }
.sx-trust-item span { font-size: 12.5px; color: var(--sx-mute); line-height: 1.7; }

/* 3つの入口 */
.sx-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sx-path {
  display: flex; flex-direction: column; gap: 10px; padding: 28px 26px 24px; background: var(--sx-paper); border: 1px solid var(--sx-line); border-radius: var(--sx-radius-lg);
  text-decoration: none; color: var(--sx-ink); position: relative; transition: border-color .2s, transform .2s;
}
.sx-path:hover { border-color: var(--sx-accent); text-decoration: none; }
@media (prefers-reduced-motion: no-preference) { .sx-path:hover { transform: translateY(-3px); } }
.sx-path .sx-tag { font-family: var(--sx-label-font); letter-spacing: .26em; font-size: 12px; font-weight: 600; color: var(--sx-accent); text-transform: uppercase; font-variant-numeric: lining-nums; }
.sx-path .sx-ico { width: 44px; height: 44px; color: var(--sx-ink); margin-bottom: 4px; }
.sx-path h3 { font-family: var(--sx-head-font); font-weight: 600; font-size: 20px; margin: 0; letter-spacing: .03em; }
.sx-path p { margin: 0; font-size: 14px; line-height: 1.9; color: var(--sx-mute); flex: 1; }
.sx-path .sx-go { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--sx-accent); margin-top: 6px; letter-spacing: .04em; }
.sx-path .sx-go .sx-ico { width: 18px; height: 18px; margin: 0; color: inherit; transition: transform .2s; }
.sx-path:hover .sx-go .sx-ico { transform: translateX(4px); }
.sx-path.is-main { background: var(--sx-ink); color: var(--sx-ivory); border-color: var(--sx-ink); }
.sx-path.is-main p, .sx-path.is-main .sx-ico { color: color-mix(in srgb, var(--sx-ivory) 78%, transparent); }
.sx-path.is-main .sx-tag, .sx-path.is-main .sx-go { color: var(--sx-ivory); }
.sx-path.is-main:hover { border-color: var(--sx-accent); background: color-mix(in srgb, var(--sx-ink) 90%, var(--sx-accent)); }

/* 種類のグリッド（線画） */
.sx-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--sx-line); border-left: 1px solid var(--sx-line); }
.sx-cat {
  display: flex; flex-direction: column; gap: 10px; padding: 22px 20px; border-right: 1px solid var(--sx-line); border-bottom: 1px solid var(--sx-line);
  background: var(--sx-paper); text-decoration: none; color: var(--sx-ink); transition: background .15s;
}
.sx-cat:hover { background: var(--sx-accent-soft); text-decoration: none; }
.sx-cat .sx-ico { width: 38px; height: 38px; color: var(--sx-accent); }
.sx-cat b { font-family: var(--sx-head-font); font-weight: 600; font-size: 15.5px; line-height: 1.5; letter-spacing: .03em; }
.sx-cat span.sx-cat-sub { font-size: 12.5px; color: var(--sx-mute); line-height: 1.7; }

/* 頼み方の流れ */
.sx-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: sx-step; position: relative; }
.sx-step { padding: 0 24px 0 0; position: relative; counter-increment: sx-step; }
.sx-step::before {
  content: "0" counter(sx-step); display: block; font-family: var(--sx-label-font); font-weight: 600; font-size: 34px; color: var(--sx-accent); letter-spacing: .08em; line-height: 1; margin-bottom: 10px; font-variant-numeric: lining-nums;
}
.sx-step::after { content: ""; position: absolute; left: 56px; right: 12px; top: 17px; height: 1px; background: var(--sx-line); }
.sx-step:last-child::after { display: none; }
.sx-step h3 { font-family: var(--sx-head-font); font-weight: 600; font-size: 17px; margin: 0 0 6px; letter-spacing: .03em; }
.sx-step p { margin: 0; font-size: 13.5px; line-height: 1.9; color: var(--sx-mute); }

/* 安心の4項目（本文の大きい版） */
.sx-assure { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sx-assure-item { display: flex; gap: 18px; padding: 24px; background: var(--sx-paper); border: 1px solid var(--sx-line); border-radius: var(--sx-radius-lg); }
.sx-assure-item .sx-ico { width: 40px; height: 40px; color: var(--sx-accent); }
.sx-assure-item h3 { font-family: var(--sx-head-font); font-weight: 600; font-size: 16.5px; margin: 0 0 6px; letter-spacing: .03em; }
.sx-assure-item p { margin: 0; font-size: 13.5px; line-height: 1.9; color: var(--sx-mute); }
.sx-operator { margin-top: 20px; font-size: 13px; line-height: 1.9; color: var(--sx-mute); }

/* 料金の帯と最後の呼びかけ */
.sx-band {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: clamp(28px, 4vw, 44px); background: var(--sx-stone);
  border: 1px solid var(--sx-line); border-radius: var(--sx-radius-lg);
}
.sx-band h3 { font-family: var(--sx-head-font); font-weight: 600; font-size: 22px; margin: 0 0 6px; letter-spacing: .03em; }
.sx-band p { margin: 0; font-size: 14px; line-height: 1.9; color: var(--sx-mute); max-width: 36em; }
.sx-band.is-dark { background: var(--sx-ink); border-color: var(--sx-ink); color: var(--sx-ivory); }
.sx-band.is-dark p { color: color-mix(in srgb, var(--sx-ivory) 78%, transparent); }
.sx-band.is-dark .btn { border-color: var(--sx-ivory); color: var(--sx-ivory); }
.sx-band.is-dark .btn:hover { background: var(--sx-ivory); color: var(--sx-ink); }
.sx-stats { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--sx-line); border-bottom: 1px solid var(--sx-line); margin-bottom: 0; }
.sx-stat { flex: 1 1 140px; padding: 18px 20px; border-right: 1px solid var(--sx-line); text-align: left; }
.sx-stat:last-child { border-right: 0; }
.sx-stat b { display: block; font-family: var(--sx-label-font); font-size: 30px; font-weight: 600; line-height: 1.1; color: var(--sx-ink); font-variant-numeric: lining-nums; }
.sx-stat span { font-size: 12.5px; color: var(--sx-mute); letter-spacing: .04em; }

/* ---- 右のレール（Stoa 専用） ---- */
.sx-rail { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 80px; }
.sx-rail-card { background: var(--sx-paper); border: 1px solid var(--sx-line); border-radius: var(--sx-radius-lg); padding: 20px; }
.sx-rail-card h3 {
  font-family: var(--sx-label-font); font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--sx-accent); margin: 0 0 12px;
  display: flex; align-items: center; gap: 10px; font-variant-numeric: lining-nums;
}
.sx-rail-card h3::after { content: ""; flex: 1; height: 1px; background: var(--sx-line); }
.sx-rail-card .sx-btn, .sx-rail-card .btn { width: 100%; margin-bottom: 8px; }
.sx-rail-link { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; color: var(--sx-ink); text-decoration: none; border-bottom: 1px solid var(--sx-line); }
.sx-rail-link:last-child { border-bottom: 0; }
.sx-rail-link:hover { color: var(--sx-accent); text-decoration: none; }
.sx-rail-link .sx-ico { color: var(--sx-mute); width: 18px; height: 18px; }
.sx-rail-link small { margin-left: auto; color: var(--sx-mute); font-size: 12px; }
.sx-rail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sx-rail-list li { display: flex; gap: 10px; font-size: 13px; line-height: 1.7; color: var(--sx-mute); }
.sx-rail-list .sx-ico { width: 18px; height: 18px; color: var(--sx-accent); margin-top: 3px; }
.sx-rail-big { font-family: var(--sx-head-font); font-size: 22px; font-weight: 600; color: var(--sx-ink); margin: 0 0 4px; }

/* ---- 既存の部品を、Stoa の見た目へ（トークンに従う） ---- */
.sx .card, .sx .info-card, .sx .event-card {
  background: var(--sx-paper); border: 1px solid var(--sx-line); border-radius: var(--sx-radius-lg); box-shadow: none; color: var(--sx-ink);
}
.sx .info-card:hover, .sx .event-card:hover { border-color: var(--sx-accent); }
.sx .card-heading { font-family: var(--sx-head-font); font-weight: 600; letter-spacing: .02em; }
.sx .text-muted, .sx .stoa-note { color: var(--sx-mute); }
.sx .portal-card-photo, .sx .portal-card-photo-placeholder { border-radius: var(--sx-radius-lg) var(--sx-radius-lg) 0 0; }
.sx .portal-card-photo-placeholder { background: var(--sx-stone); color: var(--sx-mute); }
.sx input[type="text"], .sx input[type="search"], .sx select, .sx textarea { border-radius: var(--sx-radius); border-color: var(--sx-line); background: var(--sx-paper); color: var(--sx-ink); }
.sx .stoa-flow-item, .sx .stoa-trust-item, .sx .stoa-aud, .sx .stoa-step { background: var(--sx-paper); border: 1px solid var(--sx-line); border-radius: var(--sx-radius-lg); box-shadow: none; }
.sx .stoa-flow-item::before, .sx .stoa-trust-num { background: var(--sx-accent-soft); color: var(--sx-accent); }
.sx .stoa-band { background: var(--sx-ink); color: var(--sx-ivory); border-radius: var(--sx-radius-lg); }
.sx .stoa-band h3 { color: var(--sx-ivory); font-family: var(--sx-head-font); }
.sx .stoa-band .btn { background: var(--sx-ivory); color: var(--sx-ink); border-color: var(--sx-ivory); }
.sx .stoa-operator { background: var(--sx-stone); border-radius: var(--sx-radius); color: var(--sx-mute); }
.sx .stoa-crumb { color: var(--sx-mute); }
.sx .stoa-detail-head h1, .sx h1 { font-family: var(--sx-head-font); font-weight: 600; letter-spacing: .03em; color: var(--sx-ink); }
.sx .hscroll-nav { border-color: var(--sx-line); background: var(--sx-paper); color: var(--sx-ink); border-radius: var(--sx-radius); }

/* ---- フッター ---- */
.sx .stoa-foot { background: var(--sx-stone); border-top: 1px solid var(--sx-line); padding-top: 24px; position: relative; }
.sx .stoa-foot::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--sx-line) 0 1px, transparent 1px 24px);
}
.sx .stoa-foot-brand { font-family: var(--sx-head-font); font-weight: 600; color: var(--sx-ink); letter-spacing: .08em; }
.sx .stoa-foot-col h3 { font-family: var(--sx-label-font); text-transform: uppercase; letter-spacing: .22em; color: var(--sx-accent); font-size: 12px; font-weight: 600; font-variant-numeric: lining-nums; }
.sx .stoa-foot-col a { color: var(--sx-ink); }
.sx .stoa-foot-col a:hover { color: var(--sx-accent); }
.sx .stoa-foot-note, .sx .stoa-foot-bottom { color: var(--sx-mute); }

/* ---- スマホ ---- */
@media (max-width: 900px) {
  .sx-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .sx-hero-art { min-height: 0; aspect-ratio: 16 / 10; }   /* 細い帯に切らず、写真の見える範囲を、そのまま（D-2090）。写真は、文章（見出し・説明・ボタン）の後に出す＝AGORAのトップと同じ（D-2097） */
  .sx-hero-art .sx-hero-badge { display: none; }
  .sx-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-trust-item:nth-child(2) { border-right: 0; }
  .sx-trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--sx-line); }
  .sx-paths, .sx-assure { grid-template-columns: minmax(0, 1fr); }
  .sx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .sx-step:nth-child(2)::after { display: none; }
}
@media (max-width: 600px) {
  .sx .agora-header { height: 56px; }
  .sx .portal-sidenav, .sx .portal-sidenav-backdrop { top: 56px; }
  .sx-search input, .sx-search input[inputmode="numeric"] { flex: 1 1 100%; }
  .sx-search button { flex: 1 1 100%; padding: 13px; }
  .sx-hero-cta .btn { flex: 1 1 100%; }
  .sx-trust { grid-template-columns: minmax(0, 1fr); }
  .sx-trust-item { border-right: 0; border-bottom: 1px solid var(--sx-line); padding: 16px var(--sx-gutter); }
  .sx-trust-item:last-child { border-bottom: 0; }
  .sx-steps { grid-template-columns: minmax(0, 1fr); }
  .sx-step::after { display: none; }
  .sx-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-band { flex-direction: column; align-items: flex-start; }
  .sx-band .btn { width: 100%; }
}
@media print { .sx .agora-header, .sx .portal-sidenav, .sx-rail { display: none !important; } }

/* ---- ヘッダー右上のログイン／マイページ（ui-common.js が差し込むボタンを、Stoaの形へ） ---- */
.sx .header-account-btn {
  border-radius: var(--sx-radius); border: 1px solid var(--sx-ink); background: transparent; color: var(--sx-ink);
  font-weight: 600; letter-spacing: .06em; font-size: 13.5px; padding: 8px 18px;
}
.sx .header-account-btn:hover { background: var(--sx-stone); }
.sx .header-account-btn.is-login { background: var(--sx-ink); border-color: var(--sx-ink); color: var(--sx-ivory); }
.sx .header-account-btn.is-login:hover { background: var(--sx-accent); border-color: var(--sx-accent); color: var(--sx-on-accent); }

/* ---- 下位の画面（掲示板・料金・提供者…）の仕上げ ---- */
.sx .portal-main > section > .section-label::before { content: none; }
.sx .portal-main > section > .section-label { border-left: 2px solid var(--sx-accent); padding-left: 14px; }
.sx .portal-main > section:not(.sx-sec) { margin-bottom: 44px; }
.sx .portal-main { padding-top: 28px; }
.sx .stoa-step::before { background: var(--sx-accent-soft); color: var(--sx-accent); }
.sx .portal-card-photo-placeholder[hidden] { display: none; }
.sx .portal-card-photo-placeholder { min-height: 120px; }
.sx .portal-card-photo-placeholder .sx-ico { color: var(--sx-mute); opacity: .7; }
.sx .stoa-trust-line .sx-ico { width: 16px; height: 16px; color: var(--sx-accent); margin-top: 3px; }
.sx #portal-dark-toggle { padding-left: 56px; color: var(--sx-mute); }
.sx .stoa-cat-icon .sx-ico { color: var(--sx-accent); }

/* =====================================================================
   ログイン後（#/stoa…）の枠と画面（D-2057）。やさしい／クラシックの外観に従う（トークンだけ）
   ===================================================================== */
:root[data-look="classic"] { --sx-ivory: #FFFFFF; --sx-paper: #FFFFFF; --sx-stone: #F2F2F0; --sx-line: var(--look-hairline, #DCDCDA); --sx-ink: var(--look-ink, #2A2825); --sx-mute: #555552; }
:root.dark[data-look="classic"] { --sx-ivory: #0C0C0C; --sx-paper: #141414; --sx-stone: #1C1C1C; --sx-mute: #A8A8A5; }

/* 左のメニュー（AGORA共通の木の枠の中に、Stoa専用の木を入れる） */
.sn-tree.is-stoa .sn-search, .sn-tree.is-robotics .sn-search { display: none; }
.sx-nav { padding: 4px 0 8px; }
.sx-nav .sx-nav-group { padding: 12px 0 4px; }
.sx-nav .sx-nav-group h3 { padding: 0 14px 6px; }
.sx-nav-link { display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--sx-ink); text-decoration: none; border-left: 2px solid transparent; letter-spacing: .02em; }
.sx-nav-link .sx-ico { width: 19px; height: 19px; color: var(--sx-mute); }
.sx-nav-link .sx-nav-t { flex: 1; min-width: 0; line-height: 1.45; }
.sx-nav-link small { display: block; font-size: 11.5px; font-weight: 400; color: var(--sx-mute); margin-top: 1px; }
.sx-nav-link:hover { background: var(--sx-stone); border-left-color: var(--sx-line); text-decoration: none; }
.sx-nav-link[aria-current="page"] { border-left-color: var(--sx-accent); color: var(--sx-accent); background: var(--sx-accent-soft); font-weight: 600; }
.sx-nav-link[aria-current="page"] .sx-ico { color: var(--sx-accent); }
.sx-badge { flex: none; min-width: 20px; padding: 0 6px; height: 20px; border-radius: 10px; background: var(--sx-accent); color: var(--sx-on-accent); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.sx-badge[hidden] { display: none; }
.sx-nav-group h3 { color: var(--sx-accent); }

/* 右のレール（ログイン後） */
.sx-rail-host { min-width: 0; }
.sx-rail-host .sx-rail { position: sticky; top: 76px; }
.sx-rail-quiet { margin: 0 0 8px; font-size: 13px; line-height: 1.8; color: var(--sx-mute); }
.sx-stat-row { gap: 14px; }
.sx-stat-row b { font-family: var(--sx-label-font); font-size: 26px; font-weight: 600; min-width: 28px; line-height: 1; color: var(--sx-ink); font-variant-numeric: lining-nums; }
.sx-stat-row.is-attn b { color: var(--sx-accent); }
.sx-stat-row span { flex: 1; font-size: 13.5px; }

/* 依頼の段階（書いた → 見積が届く → 相手を選ぶ → 解決） */
.sx-stage { list-style: none; display: flex; gap: 0; margin: 8px 0 0; padding: 0; }
.sx-stage li { flex: 1; font-size: 11.5px; color: var(--sx-mute); position: relative; padding-top: 10px; min-width: 0; }
.sx-stage li::before { content: ""; position: absolute; top: 0; left: 0; right: 4px; height: 3px; background: var(--sx-line); border-radius: 2px; }
.sx-stage li.is-done::before { background: var(--sx-accent); }
.sx-stage li.is-now { color: var(--sx-ink); font-weight: 600; }
.sx-stage li span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ホーム */
.sx-home { padding: 4px 0 40px; color: var(--sx-ink); }
.sx-home-top { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin: 0 0 24px; }
.sx-home-top .sx-search { flex: 1 1 380px; max-width: 560px; }
.sx-home-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.sx-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 8px; }
.sx-kpi { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: center; padding: 20px; background: var(--sx-paper); border: 1px solid var(--sx-line); border-radius: var(--sx-radius-lg); color: var(--sx-ink); text-decoration: none; transition: border-color .2s; }
.sx-kpi:hover { border-color: var(--sx-accent); text-decoration: none; }
.sx-kpi .sx-ico { grid-row: 1 / span 3; width: 34px; height: 34px; color: var(--sx-mute); }
.sx-kpi-n { font-family: var(--sx-label-font); font-size: 36px; font-weight: 600; line-height: 1; font-variant-numeric: lining-nums; }
.sx-kpi.is-attn .sx-kpi-n, .sx-kpi.is-attn .sx-ico { color: var(--sx-accent); }
.sx-kpi-l { font-weight: 600; font-size: 14.5px; }
.sx-kpi-h { font-size: 12.5px; color: var(--sx-mute); line-height: 1.6; }
.sx-hsec { padding: 28px 0 8px; }
.sx-hsec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sx-hsec-h .sx-eyebrow { margin-bottom: 6px; }
.sx-hsec-h .sx-h2 { margin: 0; }
.sx-reqs { display: grid; gap: 10px; }
.sx-req { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--sx-paper); border: 1px solid var(--sx-line); border-radius: var(--sx-radius-lg); color: var(--sx-ink); text-decoration: none; transition: border-color .2s; }
a.sx-req:hover { border-color: var(--sx-accent); text-decoration: none; }
.sx-req-ico .sx-ico { width: 30px; height: 30px; color: var(--sx-accent); }
.sx-req-main { flex: 1; min-width: 0; display: block; }
.sx-req-main b { display: block; font-family: var(--sx-head-font); font-weight: 600; font-size: 16px; letter-spacing: .02em; overflow-wrap: anywhere; }
.sx-req-main small { display: block; color: var(--sx-mute); font-size: 12.5px; margin-top: 2px; }
.sx-req-side { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.sx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.sx-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--sx-paper); border: 1px solid var(--sx-line); border-radius: var(--sx-radius-lg); color: var(--sx-ink); text-decoration: none; transition: border-color .2s; }
.sx-card:hover { border-color: var(--sx-accent); text-decoration: none; }
.sx-card b { font-family: var(--sx-head-font); font-weight: 600; font-size: 15.5px; line-height: 1.5; overflow-wrap: anywhere; }
.sx-card small { color: var(--sx-mute); font-size: 12.5px; }
.sx-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.sx-more { margin: 12px 0 0; font-size: 14px; }
.sx-more a { color: var(--sx-accent); font-weight: 600; text-decoration: none; }
.sx-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; background: var(--sx-paper); border: 1px dashed var(--sx-line); border-radius: var(--sx-radius-lg); }
.sx-empty .sx-ico { color: var(--sx-mute); opacity: .7; }
.sx-empty p { margin: 0; font-size: 14px; line-height: 1.9; color: var(--sx-mute); max-width: 36em; }
.sx-cats-sm { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.sx-cats-sm .sx-cat { flex-direction: row; align-items: center; padding: 14px 16px; gap: 12px; }
.sx-cats-sm .sx-cat .sx-ico { width: 28px; height: 28px; }
.sx-cats-sm .sx-cat b { font-size: 14px; }
.sx-btn { border: 1px solid var(--sx-ink); border-radius: var(--sx-radius); background: transparent; color: var(--sx-ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; font-weight: 600; font-size: 14.5px; letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.sx-btn:hover { background: var(--sx-stone); text-decoration: none; }
.sx-btn.is-primary { background: var(--sx-ink); color: var(--sx-ivory); }
.sx-btn.is-primary:hover { background: var(--sx-accent); border-color: var(--sx-accent); color: var(--sx-on-accent); }
@media (max-width: 900px) { .sx-kpis { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .sx-req { flex-wrap: wrap; }
  .sx-req-side { flex-basis: 100%; justify-content: flex-start; }
  .sx-home-top .sx-search { flex-basis: 100%; }
  .sx-home-cta .sx-btn { flex: 1; }
  .sx-kpi { padding: 16px; }
}

/* 見出しの上の小さなラベルは、h2の疑似要素で出す（ページ共通の整形が、段落や span を「注記」の箱で包むため） */
.sx-h2-eb::before {
  content: attr(data-eyebrow); display: block; font-family: var(--sx-label-font); font-weight: 600; font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sx-accent); margin: 0 0 6px; padding-left: 40px; background: linear-gradient(var(--sx-accent), var(--sx-accent)) left center / 28px 1px no-repeat; font-variant-numeric: lining-nums;
}
.sx-btn { white-space: nowrap; }
@media (max-width: 600px) { .sx-home-cta { flex: 1 1 100%; } .sx-home-cta .sx-btn { padding-left: 12px; padding-right: 12px; } }

/* =====================================================================
   ログイン後の下位の画面（頼む・依頼の詳細・掲示板・提供者・自分の管理・運営）の見た目（D-2058）
   #main-content に .sx、body に sx-stoa が付く（stoa-shell.js の syncBody）。外観（やさしい／クラシック）のトークンに従う
   ===================================================================== */
.sx-ti { display: inline-block; margin-right: .45em; color: var(--sx-accent); vertical-align: middle; }
.sx-ti .sx-ico { width: 1.2em; height: 1.2em; vertical-align: -0.2em; }
/* 見出し帯：AGORA共通のヒーローを、Stoaの見出しに（象牙・明朝・小さなラベル。虹と大きなロゴの印は出さない） */
body.sx-stoa .dashboard-hero { background: var(--sx-ivory); border-bottom: 1px solid var(--sx-line); box-shadow: none; }
body.sx-stoa .dashboard-hero .dashboard-hero-mark, body.sx-stoa .dashboard-hero .dashboard-hero-logo { display: none; }
body.sx-stoa .dashboard-hero-title { font-family: var(--sx-head-font); font-weight: 600; letter-spacing: .03em; color: var(--sx-ink); }
:root body.sx-stoa .dashboard-hero .dashboard-hero-title-block::before { content: none; display: none; }   /* 見出しの上の小さな「AGORA STOA」は出さない（ヘッダーに名前があるため。D-2065） */
body.sx-stoa .dashboard-hero-subtitle { color: var(--sx-mute); }
/* 本文の枠・見出し・入力 */
.sx .ct-sec-hint, .sx .text-muted { color: var(--sx-mute); }
.sx h1, .sx h2 { font-family: var(--sx-head-font); font-weight: 600; letter-spacing: .02em; }
.sx .card, .sx .ct-panel, .sx .ct-note, .sx .ct-kpi { background: var(--sx-paper); border-color: var(--sx-line); box-shadow: none; }
.sx .ct-pill.is-info { background: var(--sx-stone); color: var(--sx-ink); }
.sx .ct-pill.is-warn { background: var(--sx-accent-soft); color: var(--sx-accent); }
.sx .badge { background: var(--sx-stone); color: var(--sx-ink); border-radius: 999px; }
.sx input, .sx select, .sx textarea { border-color: var(--sx-line); border-radius: var(--sx-radius); background: var(--sx-paper); color: var(--sx-ink); }
.sx input:focus, .sx select:focus, .sx textarea:focus { outline: 2px solid var(--sx-accent); outline-offset: 1px; border-color: var(--sx-accent); }
.sx .list-row { border-color: var(--sx-line); }
.sx .list-row:hover { background: var(--sx-stone); }
.sx p a, .sx li a, .sx .text-sm a, .sx .ct-row-sub a { color: var(--sx-accent); text-decoration: underline; text-underline-offset: 3px; }
body.sx-stoa .dashboard-hero-icon { display: none; }
/* 区画の見出し（虹の縦線を、オリーブの細い線に。クラシックでは、ゴールド） */
.sx .ct-auto-title::before, .sx .section-label::before, .sx .ct-section-h::before { background: var(--sx-accent) !important; }
.sx .ct-auto-title, .sx .section-label { font-family: var(--sx-head-font); font-weight: 600; letter-spacing: .03em; color: var(--sx-ink); }
/* 数字は、ラベル書体でも、高さのそろった数字（Cormorantの既定は、低い数字） */
.sx-stat-row b, .sx-kpi-n, .sx-stat b, .sx-step::before, .sx-rail-big { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }

/* ---- 公開ページ（詳細）の仕上げ（D-2059） ---- */
.sx .guest-dashboard-layout.sx-no-rail { grid-template-columns: minmax(0, 1fr); }
.sx .guest-dashboard-layout.sx-no-rail #portal-rail { display: none; }
.sx .guest-dashboard-layout.sx-no-rail .stoa-detail, .sx .guest-dashboard-layout.sx-no-rail .stoa-detail-photo { max-width: 1040px; }   /* 写真も、本文と同じ幅に（右へはみ出していた） */
/* 写真が無いときの枠は、背の低い帯に（大きな空の箱にしない） */
.sx .portal-card-photo-placeholder { aspect-ratio: auto; min-height: 0; height: 96px; }
.sx .stoa-board-grid .portal-card-photo-placeholder, .sx .stoa-board-grid .portal-card-photo { height: 120px; aspect-ratio: auto; object-fit: cover; }

/* 見積の比べ方（依頼の詳細） */
.sx-quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 8px; }
.sx-quote { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; background: var(--sx-paper); border: 1px solid var(--sx-line); border-radius: var(--sx-radius-lg); }
.sx-quote.is-chosen { border-color: var(--sx-accent); box-shadow: inset 0 0 0 1px var(--sx-accent); }
.sx-quote.is-muted { opacity: .6; }
.sx-quote-h { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.sx-quote-name { font-family: var(--sx-head-font); font-weight: 600; font-size: 16px; letter-spacing: .02em; overflow-wrap: anywhere; }
.sx-quote-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.sx-quote-amt { font-family: var(--sx-label-font); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; font-size: 34px; font-weight: 600; line-height: 1.1; color: var(--sx-ink); }
.sx-quote-amt small { font-family: var(--sx-head-font); font-size: 14px; margin-left: 3px; color: var(--sx-mute); }
.sx-quote-amt.is-text { font-family: var(--sx-head-font); font-size: 15px; color: var(--sx-mute); }
.sx-quote-note { font-size: 13.5px; line-height: 1.9; color: var(--sx-ink); white-space: pre-wrap; overflow-wrap: anywhere; flex: 1; }
.sx-quote-act { display: flex; gap: 8px; flex-wrap: wrap; }
.sx-quote-hint { margin: 0 0 12px; font-size: 13px; line-height: 1.8; color: var(--sx-mute); }

/* 右の「この種類について／この掲示について／この提供者について」の箱：青みがかった地・枠なしをやめ、ほかのカードと同じ（紙色・細い枠。D-2065） */
.sx .stoa-side-box { background: var(--sx-paper); border: 1px solid var(--sx-line); border-radius: var(--sx-radius); box-shadow: none; }
.sx .stoa-side-box h2 { font-family: var(--sx-label-font); color: var(--sx-accent); letter-spacing: .12em; font-weight: 600; font-variant-numeric: lining-nums; }

/* ヒーローのタイルのメニュー（D-2081）の中の、Stoaの線画：マイページ・団体ページのタイルと同じ大きさ */
.dashboard-hero-stat-icon .sx-ico { width: 30px; height: 30px; color: var(--color-text-sub, var(--sx-mute)); }
a.dashboard-hero-stat:hover .sx-ico { color: var(--color-heading, var(--sx-ink)); }

/* 本文の書体（やわらかく、読みやすい。D-2087）：Stoaの公開ページ */
body.sx-body { font-family: "Zen Kaku Gothic New", "Noto Sans JP", -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; }

/* 見出しの折り返し（D-2087）：言葉の途中で切らず（「つな／ぐ」「つ／くる」を防ぐ）、行の長さをそろえる。対応していないブラウザでは、これまでどおり */
.sx h1, .sx h2, .sx-hero h1, .sx-h2 { text-wrap: balance; word-break: auto-phrase; line-break: strict; }

/* 写真（D-2090。カズ：「Stoaの写真ちょっとださいかも。小さくしたときの切り抜きも。いろんなところに、ちりばめて」）
   見出しの写真は、人物の足元だけにならないよう、手元と木箱が入る横長に。広い画面でも、縦に長く切らない */
.sx-hero-art { min-height: 0; aspect-ratio: 16 / 10; align-self: center; }
.sx-hero-art img { object-position: 50% 45%; }
/* 3つの入口：上に写真 */
.sx-path-photo { display: block; align-self: stretch; width: auto; max-width: none; margin: -28px -26px 8px; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--sx-line); border-radius: 0; }   /* カードの幅いっぱい（D-2093。ずれていた）。角は、丸めない */

/* 見出しの写真：AGORAのトップと同じ「斜めのカット」に（D-2093。カズ：「Stoaの写真ダサいなぁ。AGORAと同じカットタイプにする？」）
   角の丸みと、写真の上に重ねた白い札をやめる。札は、写真の下の、ふつうの文字に。写真は、左上を斜めに切る（広い画面）／上を斜めに切る（スマホ） */
.sx-hero-art { min-height: 0; aspect-ratio: auto; display: flex; flex-direction: column; gap: 14px; border: 0; border-radius: 0; background: none; overflow: visible; align-self: center; }
.sx-hero-art::before, .sx-hero-art::after { content: none; display: none; }
.sx-hero-art picture { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sx-stone); clip-path: polygon(14% 0%, 100% 0%, 100% 100%, 0% 100%); }
.sx-hero-art picture img { position: static; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.sx-hero-art .sx-hero-badge { position: static; background: none; border: 0; border-radius: 0; padding: 0; font-size: 13px; line-height: 1.8; color: var(--sx-mute); }
@media (max-width: 900px) {
  .sx-hero-art { aspect-ratio: auto; min-height: 0; }
  .sx-hero-art picture { clip-path: polygon(0% 14%, 100% 0%, 100% 100%, 0% 100%); }
  .sx-hero-art .sx-hero-badge { display: block; }
}

/* 写真の位置：AGORAのトップと同じ、見出しの文章の右・上にそろえる（D-2094。カズ：「写真の表示位置がAGORAと同じ位置に」）。真ん中そろえをやめる */
.sx-hero-art { align-self: start; }
@media (min-width: 901px) { .sx-hero-art { max-width: 100%; } }
/* 見出しの写真の縦：広い画面では、左の文章（見出し・説明・ボタン）の高さまで伸ばし、「手伝う・譲る」のボタンの下を少し超えるくらいに
   （カズ：「画像のサイズを、手伝うをちょっと超える位、縦の幅を増やしてほしい」）。スマホは、これまでどおり（文章の後ろに、16:10） */
@media (min-width: 901px) {
  .sx-hero-art { align-self: stretch; }
  .sx-hero-art picture { flex: 1 1 auto; aspect-ratio: auto; min-height: 280px; }
}

/* 公開ページの料金・詳細の下ページ（stoa.html の古い部品）が使う、紺の色の名前を、柱廊の墨・石に寄せる（D-2096。「0円」などが青く見えていた） */
body.sx-body { --navy-900: var(--sx-ink); --navy-800: var(--sx-ink); --navy-700: var(--sx-mute); --navy-100: var(--sx-stone); --navy-50: var(--sx-stone); --color-heading: var(--sx-ink); }

/* 種類の節の先頭の検索（D-2097）：節の幅いっぱいに、下の一覧との間をあける */
.sx-sec .sx-search { max-width: none; margin-bottom: 8px; }
.sx-sec .stoa-fine { margin: 10px 0 24px; font-size: 12.5px; color: var(--sx-mute); line-height: 1.8; }

/* 種類ごとのページの写真（作業の様子。D-2097）：見出しの下に、横長の1枚。左上を斜めに切る（AGORAのトップ・Stoaの見出しと同じ） */
.stoa-detail-photo { margin: 0 0 var(--space-5, 24px); aspect-ratio: 8 / 3; overflow: hidden; background: var(--sx-stone); clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 0% 100%); }
.stoa-detail-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
@media (max-width: 700px) { .stoa-detail-photo { aspect-ratio: 16 / 9; clip-path: polygon(0% 8%, 100% 0%, 100% 100%, 0% 100%); } }

/* 見積の質・並べて比べる・提供者の編集（D-2108）。色は、トークンだけ */
.sx-quote-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 10px 0 0; font-size: 13.5px; line-height: 1.7; }
.sx-quote-facts dt { color: var(--sx-mute); }
.sx-quote-facts dd { margin: 0; overflow-wrap: anywhere; }
.sx-compare-bars { margin: 0 0 var(--space-3, 12px); }
.sx-compare { margin: 0 0 var(--space-3, 12px); border: 1px solid var(--sx-line); background: var(--sx-paper); }
.sx-compare > summary { cursor: pointer; padding: 12px 16px; font-weight: 600; letter-spacing: .04em; }
.sx-compare-wrap { overflow-x: auto; padding: 0 16px 16px; }
.sx-compare table { border-collapse: collapse; min-width: 100%; font-size: 13.5px; }
.sx-compare th, .sx-compare td { border-top: 1px solid var(--sx-line); padding: 8px 10px; text-align: left; vertical-align: top; min-width: 9em; }
.sx-compare tbody th { color: var(--sx-mute); font-weight: 500; white-space: nowrap; min-width: 0; }
.sx-extra { border: 1px solid var(--sx-line); padding: 8px 12px; margin: 0 0 var(--space-2, 8px); }
.sx-extra[hidden], .sx-extra input[hidden] { display: none; }
.sx-extra label { display: block; padding: 3px 0; }
.sx-profile-edit { margin-top: var(--space-2, 8px); border-top: 1px solid var(--sx-line); padding-top: var(--space-2, 8px); }
.sx-profile-edit > summary { cursor: pointer; font-weight: 600; }

/* 出店する方へ：チェックリスト（D-2108） */
.stoa-checklist { margin: 0; padding: 0 0 0 1.2em; display: grid; gap: var(--space-2, 8px); line-height: 1.8; }
.stoa-checklist li { padding-left: 2px; }


/* 評価（D-2109） */
.sx-stars { display: inline-flex; gap: 2px; color: var(--sx-accent); vertical-align: -2px; }
.sx-stars svg { width: 1.05em; height: 1.05em; }
.stoa-rating-line { margin: 4px 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sx-rating-sum { display: flex; gap: var(--space-4); align-items: center; flex-wrap: wrap; margin-bottom: var(--space-3); }
.sx-rating-big { display: grid; gap: 2px; justify-items: start; min-width: 7em; }
.sx-rating-big b { font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.sx-rating-big small { color: var(--sx-mute); }
.sx-dist { flex: 1; min-width: min(240px, 100%); display: grid; gap: 4px; }
.sx-dist-row { display: grid; grid-template-columns: 2.6em 1fr 2em; gap: 8px; align-items: center; font-size: .85rem; font-variant-numeric: tabular-nums; }
.sx-dist-bar { height: 8px; border-radius: 4px; background: var(--sx-line); overflow: hidden; }
.sx-dist-bar i { display: block; height: 100%; background: var(--sx-accent); }
.sx-dist-n { text-align: right; color: var(--sx-mute); }
.sx-review { padding: var(--space-3) 0; border-top: 1px solid var(--sx-line); }
.sx-review-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sx-review-body { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.sx-review-reply { margin: 8px 0 0; padding: 8px 12px; border: 1px solid var(--sx-line); border-radius: var(--sx-radius); background: var(--sx-paper); font-size: .92rem; }
.sx-review-reply p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.sx-review-rules { margin: var(--space-3) 0 0; font-size: .88rem; color: var(--sx-mute); }
.sx-review-rules ul { margin: 6px 0 0; padding-left: 1.2em; line-height: 1.8; }
.sx-star-pick { display: flex; gap: 6px 16px; flex-wrap: wrap; margin: var(--space-2) 0; }
.sx-star-pick label { display: inline-flex; align-items: center; gap: 4px; }


/* 作業の日程と報告（D-2110） */
.sx-visit-fixed { margin: 0 0 var(--space-2); font-size: 1.05rem; }
.sx-visit-list { list-style: none; margin: 0 0 var(--space-2); padding: 0; display: grid; gap: var(--space-2); }
.sx-visit-list li { display: flex; gap: var(--space-2); align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 8px 12px; border: 1px solid var(--sx-line); border-radius: var(--sx-radius); }
.sx-visit-form { display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.sx-visit-form .sx-visit-dt, .sx-visit-form input { max-width: 100%; }
.sx-visit-resched, .sx-report-form { margin-top: var(--space-3); }
.sx-visit-resched input, .sx-report-form textarea { margin: var(--space-2) 0; }


/* 相場の目安（D-2111） */
.stoa-guide { display: flex; gap: var(--space-5); flex-wrap: wrap; align-items: flex-end; margin: var(--space-2) 0; }
.stoa-guide small { display: block; color: var(--sx-mute); font-size: .8rem; }
.stoa-guide b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.stoa-guide-mid b { font-size: 2.2rem; }


/* 団体のおすすめ（D-2112） */
.sx-endorse-org { margin-bottom: var(--space-4); }
.sx-endorse-find { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; margin-top: var(--space-2); }
.sx-endorse-find .sx-endorse-q { flex: 1; min-width: 12em; }
.sx-endorse-results { flex-basis: 100%; }
.sx-endorse-note { min-width: 10em; max-width: 100%; }

.stoa-detail-photo picture { display: block; width: 100%; height: 100%; }

/* スマホ・タブレット（1列のとき）：本文の最後と、その下のレールのカードの間の余白を詰める（本文の下の72px＋セクションの下の余白＋列の間隔が
   重なって、空きすぎていた。カズ：「ここ、ちょっとスペース空きすぎなような？」）。2列の広い画面は、これまでどおり */
@media (max-width: 900px) {
  .sx .portal-main { padding-bottom: 0; }
  .sx .guest-dashboard-layout { row-gap: var(--space-4); }
  .sx .portal-main > .sx-sec:last-child { padding-bottom: var(--space-5); border-bottom: 0; }
}


/* 作業の写真のリンク（D-2115） */
.sx-photos { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--sx-line); }
.sx-photo-list { list-style: none; margin: 0 0 var(--space-2); padding: 0; display: grid; gap: var(--space-1); }
.sx-photo-list li { display: flex; gap: var(--space-2); align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 6px 0; }
.sx-photo-list a { overflow-wrap: anywhere; }
.sx-photo-add { margin-top: var(--space-2); }
.sx-photo-add input { margin: var(--space-1) 0; max-width: 100%; }
.sx-photo-rules { margin: var(--space-2) 0; padding-left: 1.2em; line-height: 1.8; color: var(--sx-mute); }

/* PC（2列）：右のレールのカードが、上の帯のすぐ下に付いて窮屈だったので、上に余白を足す（カズ：「PCで見る時はレールメニューの隙間すくなすぎるかも」）。
   スマホ・タブレット（1列）は、別の指定（本文との間隔）に従う */
@media (min-width: 901px) {
  .sx .guest-dashboard-layout:not(.sx-no-rail) > #portal-rail { margin-top: 28px; }
}

/* ── 依頼のやりとり（D-2155）。色はトークンだけ・左だけの線は使わない ── */
.sx-thread { border: 1px solid var(--sx-line); border-radius: var(--sx-radius-lg); padding: 10px 14px; margin-top: 8px; background: var(--sx-paper); }
.sx-thread > summary { cursor: pointer; font-weight: 600; overflow-wrap: anywhere; }
.sx-thread-list { max-height: 280px; overflow-y: auto; margin: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.sx-msg { padding: 8px 12px; border: 1px solid var(--sx-line); border-radius: var(--sx-radius); background: var(--sx-ivory); max-width: 92%; align-self: flex-start; overflow-wrap: anywhere; }
.sx-msg.is-mine { align-self: flex-end; background: var(--sx-stone); }
.sx-thread-form textarea { width: 100%; box-sizing: border-box; }

/* ── 提供者の画面：月ごとの解決した仕事（色は文字色の濃淡だけ。数字を添える）── */
.sp-bar-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: 13px; }
.sp-bar-m { flex: 0 0 3em; color: inherit; opacity: .75; }
.sp-bar-track { flex: 1 1 auto; min-width: 40px; height: 10px; background: color-mix(in srgb, currentColor 10%, transparent); border-radius: 5px; overflow: hidden; }
.sp-bar-track > i { display: block; height: 100%; background: currentColor; opacity: .55; border-radius: 5px; }
.sp-bar-n { flex: 0 0 auto; text-align: right; font-variant-numeric: tabular-nums; }

/* ── 頼み方の流れ・安心・掲示板・出店の写真（D-2103。AI生成のイメージ写真。色は文字色・トークンだけ）── */
.sx-step-ph { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-top: 14px; border-radius: var(--sx-radius); background: var(--sx-stone); }
.sx-wide-ph { margin: 0 0 var(--space-4, 16px); aspect-ratio: 8 / 3; overflow: hidden; background: var(--sx-stone); border-radius: var(--sx-radius-lg); }
.sx-wide-ph:empty { display: none; }
.sx-wide-ph-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
@media (max-width: 700px) { .sx-wide-ph { aspect-ratio: 16 / 9; } .sx-step-ph { aspect-ratio: 16 / 9; } }

/* ── 依頼の質問（D-2173）：選ぶだけの入力。色はトークンだけ ── */
.sqs { margin: var(--space-3, 12px) 0; }
.sqs-q { border: 0; padding: 0; margin: 0 0 var(--space-3, 12px); min-width: 0; }
.sqs-q legend { padding: 0; margin-bottom: 6px; }
.sqs-req { color: var(--color-danger); font-size: .78rem; }
.sqs-opts { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.sqs-opt { position: relative; cursor: pointer; }
.sqs-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sqs-opt span { display: inline-block; padding: 7px 12px; border: 1px solid var(--sx-line, var(--color-border)); border-radius: var(--sx-radius, 8px); font-size: .86rem; line-height: 1.4; background: var(--sx-paper, var(--color-surface)); }
.sqs-opt input:checked + span { background: var(--sx-ink, var(--color-text)); color: var(--sx-ivory, var(--color-surface)); border-color: var(--sx-ink, var(--color-text)); }
.sqs-opt input:focus-visible + span { outline: 2px solid var(--sx-accent, var(--color-primary)); outline-offset: 2px; }
.sqs-num input { width: 6em; padding: 6px 8px; border: 1px solid var(--sx-line, var(--color-border)); border-radius: var(--sx-radius, 8px); }
.sqs-read { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: var(--space-2, 8px) 0; font-size: .9rem; }
.sqs-read dt { color: var(--sx-mute, var(--color-text-muted)); }
.sqs-read dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .sqs-read { grid-template-columns: 1fr; gap: 0; } .sqs-read dd { margin-bottom: 6px; } }

/* 文字を大きくする（D-2235）：高齢の方向け。px指定の文字も、まとめて大きくなる。好みは端末だけに覚える（stoa-textsize.js） */
html.stoa-large body { zoom: 1.18; }

/* ヒーローのメニューの畳み（スマホの幅では閉じて、本題を先に見せる） */
.sx-hero-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 var(--space-3, 12px); border-top: 1px solid var(--color-border); font-size: .92rem; font-weight: 600; position: relative; }
.sx-hero-fold > summary::-webkit-details-marker { display: none; }
.sx-hero-fold > summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.sx-hero-fold[open] > summary::after { transform: rotate(-135deg); }
.sx-hero-fold .sx-hero-fold-badge { position: static; }
.sx-hero-fold > .dashboard-hero-stats { margin-top: 0; }
@media (min-width: 601px) { .sx-hero-fold > summary { display: none; } }

/* 指で押す所は、44px以上（スマホ・タブレット。マウスの画面は、そのまま） */
@media (pointer: coarse), (max-width: 700px) {
  .sx .header-menu-btn, .sx .header-account-btn, .sx .sb-close { min-height: 44px; min-width: 44px; }
  .sx .stoa-chip { min-height: 44px; display: inline-flex; align-items: center; }
  .sx .sx-rail-link, .sx .sx-nav-link, .sx .nav-link { min-height: 44px; display: flex; align-items: center; }
  .sx .stoa-foot a, .sx footer a { display: inline-block; padding: 12px 4px; }
}

/* 狭い画面（スマホ）のヘッダー：ロゴの「AGORA Stoa」を縮めず、ログイン／マイページのボタンの余白を詰める（375pxで、ロゴが切れていた） */
@media (max-width: 480px) {
  .sx .agora-header .logo { flex: 0 0 auto; }
  .sx .agora-header { gap: 4px; padding-left: 8px; padding-right: 8px; }
  .sx .header-account-btn { padding: 8px 8px; font-size: 12.5px; letter-spacing: 0; flex: 0 1 auto; max-width: 40vw; }
}


/* ---- 「困りごとを頼む」の入力画面（D-2358）：4つの段に分ける（並べただけに見えないように）。右のレールに安心・料金があるので、ここは1列 ---- */
.sx-newform { max-width: none; }
.sx-form { display: grid; gap: var(--space-4, 16px); min-width: 0; }
.sx-newform .sx-sec { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card, 8px); padding: var(--space-4, 16px); min-width: 0; }
.sx-sec-head { display: flex; gap: var(--space-3, 12px); align-items: flex-start; padding-bottom: var(--space-3, 12px); margin-bottom: var(--space-3, 12px); border-bottom: 1px solid var(--color-border); }
.sx-sec-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
  background: var(--sx-ink, var(--color-text)); color: var(--sx-ivory, var(--color-surface)); }
.sx-sec-title { margin: 0; padding: 0; border: 0; background: none; font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
.sx-sec-hint { margin: 2px 0 0; padding: 0; border: 0; font-size: .85rem; color: var(--sx-mute, var(--color-text-muted)); line-height: 1.6; }
.sx-sec-body > label.text-sm { display: block; font-weight: 600; margin: var(--space-3, 12px) 0 var(--space-1, 4px); }
.sx-sec-body > label.text-sm:first-child { margin-top: 0; }
.sx-sec-body div > label.text-sm:not([style]) { display: block; font-weight: 600; margin: var(--space-3, 12px) 0 var(--space-1, 4px); }
.sx-sec-body > label.text-sm[style*="display:flex"] { font-weight: 400; }
.sx-sec-body input[type="text"], .sx-sec-body input[type="url"], .sx-sec-body select, .sx-sec-body textarea { font-size: 16px; min-height: 44px; }
.sx-sec-body input:focus-visible, .sx-sec-body select:focus-visible, .sx-sec-body textarea:focus-visible { outline: 2px solid var(--sx-accent, var(--color-primary)); outline-offset: 1px; }
.sx-grid2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--space-3, 12px); }
@media (min-width: 600px) { .sx-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sx-grid2 > div > label.text-sm { display: block; font-weight: 600; margin: var(--space-3, 12px) 0 var(--space-1, 4px); }
.sx-submit-row { margin-top: var(--space-3, 12px); display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2, 8px); }
.sx-submit-row .btn { min-height: 48px; padding-left: var(--space-6, 24px); padding-right: var(--space-6, 24px); }
@media (max-width: 600px) { .sx-submit-row { position: sticky; bottom: 0; z-index: 3; background: var(--color-surface); margin: var(--space-3, 12px) calc(var(--space-4, 16px) * -1) calc(var(--space-4, 16px) * -1);
  padding: var(--space-3, 12px) var(--space-4, 16px); border-top: 1px solid var(--color-border); } .sx-submit-row .btn { flex: 1 1 100%; } }

/* 見積を出す（D-2363）：金額／内容と条件／伝えたいこと、の3つのまとまりに */
.sx-quoteform .sx-fg { padding: var(--space-3, 12px) 0; border-top: 1px solid var(--color-border); }
.sx-quoteform .sx-fg:first-of-type { border-top: 0; padding-top: 0; }
.sx-fg-title { font-weight: 700; font-size: .95rem; margin: 0 0 var(--space-1, 4px); }
.sx-quoteform label.text-sm:not([style]) { display: block; font-weight: 600; margin: var(--space-2, 8px) 0 var(--space-1, 4px); }
.sx-quoteform label.text-sm[style], .sx-quoteform .sx-extra label.text-sm { font-weight: 400; }
.sx-quoteform input[type="text"], .sx-quoteform input[type="number"], .sx-quoteform input[type="date"], .sx-quoteform select, .sx-quoteform textarea { font-size: 16px; min-height: 44px; }
.sx-quoteform .sx-submit-row { margin-top: 0; }


/* PCで、コンテンツ部（右のレールの左側）いっぱいに広げる（D-2390）。各画面に直書きされた「カードの最大幅（520〜640px）」を、Stoaの面では外す。
   メインの列は、レイアウト側（.std-layout）が決める。スマホ幅では、もともと列いっぱいなので、変わらない */
.sx [style*="max-width:var(--maxw-card"], .sx [style*="max-width: var(--maxw-card"] { max-width: none !important; }
.sx .ct-page, .sx .ct-hub-page { max-width: none !important; }

/* Stoaの左のメニュー：木の入れ子（子は、1段うちに入れる）と、権限の錠（D-2391） */
.sx-nav-link.sx-nav-d1 { padding-left: 44px; font-size: 14px; }
.sx-nav-link.sx-nav-d2 { padding-left: 64px; font-size: 13.5px; }
.sx-nav-link.sx-nav-d1 .sx-ico, .sx-nav-link.sx-nav-d2 .sx-ico { width: 18px; height: 18px; }
.sx-nav-link .perm-mark { margin-left: auto; font-size: .8rem; opacity: .7; }
.sx-nav-link .sx-badge + .perm-mark, .sx-nav-link .perm-mark + .sx-badge { margin-left: 6px; }

/* 自分の管理の画面：ホームと同じ編集の言葉。数字の列は件数に合わせて折り返し、段階の線は行ごとに同じ幅にそろえる */
.sx-me .sx-kpis { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sx-sub { margin: 0 0 12px; color: var(--sx-mute); font-size: 13.5px; line-height: 1.7; }
.sx-req-side { min-width: 224px; }
.sx-me-more { margin-top: 4px; }
.sx-req-main > a { color: inherit; text-decoration: none; }
@media (max-width: 640px) { .sx-req-side { min-width: 0; } .sx-req-side:has(> .ct-row-chev:only-child) { flex-basis: auto; align-self: center; } .sx-req:has(> .sx-req-side > .ct-row-chev:only-child) { flex-wrap: nowrap; } }

/* 掲示板の絞り込み：行ごとに名前を付け、チップをそろえる */
.sx-filter { margin-bottom: 16px; display: grid; gap: 12px; }
.sx-filter-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.sx-filter-l { flex: 0 0 6.5em; font-size: 12.5px; color: var(--sx-mute); letter-spacing: .06em; }
.sx-filter-chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1 1 0; min-width: 0; }
.sx-filter-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 12px; border-top: 1px solid var(--sx-line); }
.sx-count { margin: 0 0 8px; color: var(--sx-mute); font-size: 13.5px; }
.sx-count b { font-family: var(--sx-label-font); font-size: 22px; color: var(--sx-ink); margin-right: 2px; font-variant-numeric: lining-nums; }
@media (max-width: 640px) { .sx-filter-l { flex-basis: 100%; } }
.sx-filter-in { padding: 9px 12px; border: 1px solid var(--sx-line); border-radius: var(--sx-radius); background: var(--sx-paper); color: var(--sx-ink); font: inherit; min-width: 0; }
/* スマホ幅：カードは画面いっぱいに広げる（左右の余白を取らない）。カードに載らない見出し・説明だけ、端に付かない最小の余白を持たせる */
@media (max-width: 640px) {
  .sx-me .sx-hsec-h, .sx-home .sx-hsec-h, .sx-me .sx-sub, .sx-me .sx-more, .sx-home .sx-more, .sx-count { padding-left: 14px; padding-right: 14px; }
}

/* 運営画面：タブ・数字・グラフ（ホームと同じ言葉に） */
.sx-tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--sx-line); margin-bottom: 20px; }
.sx-tab { padding: 10px 16px; text-decoration: none; color: var(--sx-mute); border-bottom: 3px solid transparent; font-size: 14px; white-space: nowrap; }
.sx-tab:hover { color: var(--sx-ink); }
.sx-tab.is-active { color: var(--sx-ink); font-weight: 700; border-bottom-color: var(--sx-accent); }
.sx-tab-n { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--sx-accent); color: var(--sx-on-accent); font-size: 11px; line-height: 18px; text-align: center; font-weight: 700; }
.sx-minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 8px; }
.sx-mini { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--sx-paper); border: 1px solid var(--sx-line); border-radius: var(--sx-radius); text-decoration: none; color: inherit; }
.sx-mini:hover { border-color: var(--sx-accent); text-decoration: none; }
.sx-mini-n { font-family: var(--sx-label-font); font-size: 30px; font-weight: 600; line-height: 1; font-variant-numeric: lining-nums; }
.sx-mini-l { font-size: 12.5px; color: var(--sx-mute); line-height: 1.5; }
.sx-mini.is-attn .sx-mini-n { color: var(--sx-accent); }
.sx-mini.is-attn { border-color: var(--sx-accent); }
.sx-chart-narrow { max-width: 560px; }
@media (max-width: 640px) { .sx-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; } .sx-minis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sx-minis + .sx-hsec-h, .card + .sx-hsec-h { margin-top: 28px; }

/* 掲示板の一覧の行：写真があれば写真、なければ種類のアイコン。説明は2行まで */
.sx-board-ph { flex: none; width: 76px; height: 57px; object-fit: cover; border-radius: var(--sx-radius); }
.sx-board-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--sx-ink); margin: 4px 0 2px; line-height: 1.7; }
.sx-reqs[hidden] { display: none; }
