/*
 * BUTSU✖︎2 Core — 会員機能の画面用スタイル。
 * 色・角丸などはCSS変数で定義しています。テーマ側で同名の変数を上書きできます。
 */
:root {
	--b2-ground: #f5eddc;
	--b2-bg: #fbf6ea;
	--b2-paper: #fffdf8;
	--b2-text: #2a2420;
	--b2-muted: #6b5f55;
	--b2-accent: #b5402a;
	--b2-accent-strong: #8e2e1c;
	--b2-accent-soft: #f6e0d6;
	--b2-gold: #d9a441;
	--b2-gold-soft: #f7ebc9;
	--b2-green: #5e8c7a;
	--b2-green-text: #3f6b59;
	--b2-green-soft: #e4eee8;
	--b2-line: #e0d3b8;
	--b2-line-strong: #8a7a66;
	--b2-soft: #fbf6ea;
	--b2-success: #1f6f43;
	--b2-success-soft: #edf7f1;
	--b2-error: #b42318;
	--b2-error-soft: #fdf0ee;
	--b2-warn: #7a5a00;
	--b2-warn-soft: #fff7e0;
	--b2-radius-btn: 8px;
	--b2-radius-card: 12px;
	--b2-focus: 0 0 0 3px #ffffff, 0 0 0 5px #b5402a;
	--b2-font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", Meiryo, sans-serif;
}

.b2 { color: var(--b2-text); font-family: var(--b2-font); line-height: 1.8; font-size: 16px; }
.b2 *, .b2 *::before, .b2 *::after { box-sizing: border-box; }
.b2 p { margin: 0 0 12px; }
.b2 ul, .b2 ol { margin: 0; padding: 0; }

.b2-h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.35; font-weight: 700; margin: 0 0 8px; letter-spacing: .02em; }
.b2-h2 { font-size: clamp(20px, 2.6vw, 24px); line-height: 1.45; font-weight: 700; margin: 32px 0 12px; letter-spacing: .02em; }
.b2-h2:first-child { margin-top: 0; }
.b2-h3 { font-size: 18px; line-height: 1.5; font-weight: 700; margin: 0 0 12px; }
.b2-muted { color: var(--b2-muted); font-size: 14px; }
.b2-help { color: var(--b2-muted); font-size: 14px; line-height: 1.7; margin: 4px 0 0; }
.b2-aside { margin-top: 24px; font-size: 15px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* リンク */
.b2-link { color: var(--b2-accent-strong); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.b2-link:hover { text-decoration-thickness: 2px; }
.b2 a:focus-visible, .b2 button:focus-visible, .b2 input:focus-visible, .b2 select:focus-visible, .b2 textarea:focus-visible { outline: none; box-shadow: var(--b2-focus); border-radius: 4px; }

/* ボタン */
.b2-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 10px 24px; border-radius: var(--b2-radius-btn);
	font-family: inherit; font-size: 16px; line-height: 1.4; font-weight: 700; letter-spacing: .02em;
	text-decoration: none; cursor: pointer; border: 1px solid transparent; text-align: center;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.b2-btn--primary {
	color: #fff; border-color: #9b3522;
	background: linear-gradient(180deg, #c9553d 0%, #b5402a 52%, #a53a26 100%);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 1px 2px rgba(42,36,32,.14);
}
.b2-btn--primary:hover { background: linear-gradient(180deg, #b94a33 0%, #9b3522 52%, #8a2e1c 100%); color: #fff; }
.b2-btn--secondary { color: var(--b2-accent-strong); background: #fff; border-color: var(--b2-accent); }
.b2-btn--secondary:hover { background: var(--b2-soft); color: var(--b2-accent-strong); }
.b2-btn--ghost { color: var(--b2-text); background: #fff; border-color: var(--b2-line-strong); font-weight: 500; }
.b2-btn--ghost:hover { background: #f1e8d3; }
.b2-btn--sm { min-height: 40px; padding: 6px 16px; font-size: 15px; }
.b2-btn--wide { width: 100%; }
.b2-btn[disabled] { opacity: .6; cursor: progress; }
.b2-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.b2-actions--stack { flex-direction: column; align-items: stretch; text-align: center; }
.b2-inline-form { display: inline; margin: 0; }

/* フォーム */
.b2-form { margin: 0; }
.b2-field { margin: 0 0 24px; }
.b2-label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; line-height: 1.5; }
.b2-req, .b2-opt { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 700; line-height: 1; padding: 4px 6px; border-radius: 4px; vertical-align: 2px; }
.b2-req { color: #fff; background: var(--b2-accent); }
.b2-opt { color: var(--b2-muted); background: #efe5cf; font-weight: 500; }
.b2-input, .b2-select, .b2-textarea {
	display: block; width: 100%; font-family: inherit; font-size: 16px; line-height: 1.6; color: var(--b2-text);
	background: #fff; border: 1px solid var(--b2-line-strong); border-radius: var(--b2-radius-btn); padding: 10px 12px; min-height: 48px;
}
.b2-input--short { max-width: 320px; }
.b2-textarea { min-height: 120px; resize: vertical; }
.b2-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--b2-muted) 50%), linear-gradient(135deg, var(--b2-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.b2-input[aria-invalid="true"], .b2-select[aria-invalid="true"], .b2-textarea[aria-invalid="true"] { border: 2px solid var(--b2-error); background: var(--b2-error-soft); }
.b2-field-error { display: flex; gap: 8px; align-items: flex-start; color: var(--b2-error); font-size: 14px; font-weight: 700; margin: 8px 0 0; line-height: 1.6; }
.b2-field-error__mark { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--b2-error); color: #fff; font-size: 13px; line-height: 1; margin-top: 2px; }
.b2-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; line-height: 1.6; }
.b2-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--b2-accent); flex: none; }
.b2-fieldset { border: 1px solid var(--b2-line); border-radius: var(--b2-radius-card); padding: 24px; margin: 0 0 24px; min-width: 0; }
.b2-fieldset--plain { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.b2-legend { font-weight: 700; font-size: 17px; padding: 0 8px; }
.b2-choice { display: grid; gap: 8px; }
.b2-choice--inline { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.b2-choice__item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border: 1px solid var(--b2-line-strong); border-radius: var(--b2-radius-btn); cursor: pointer; background: #fff; line-height: 1.6; }
.b2-choice__item input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--b2-accent); flex: none; }
.b2-choice__item:has(input:checked) { border: 2px solid var(--b2-accent); background: var(--b2-soft); padding: 11px 15px; }
.b2-file { font-size: 15px; max-width: 100%; width: 100%; }
.b2-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* お知らせ */
.b2-notice { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 12px 16px; border-radius: var(--b2-radius-btn); margin: 0 0 24px; border: 1px solid; font-size: 15px; line-height: 1.7; }
.b2-notice__label { font-weight: 700; font-size: 13px; padding: 2px 8px; border-radius: 4px; color: #fff; }
.b2-notice--success { background: var(--b2-success-soft); border-color: #b7dcc6; color: #174f31; }
.b2-notice--success .b2-notice__label { background: var(--b2-success); }
.b2-notice--error { background: var(--b2-error-soft); border-color: #f1c1bb; color: #8a1c13; }
.b2-notice--error .b2-notice__label { background: var(--b2-error); }
.b2-notice--info { background: var(--b2-soft); border-color: var(--b2-line); }
.b2-notice--info .b2-notice__label { background: var(--b2-muted); }
.b2-admin-note { border: 2px dashed var(--b2-warn); background: var(--b2-warn-soft); padding: 16px; border-radius: var(--b2-radius-btn); margin: 0 0 24px; font-size: 15px; }
.b2-admin-note ul { padding-left: 1.4em; margin: 8px 0; }

/* 面 */
.b2-panel { border: 1px solid var(--b2-line); border-radius: var(--b2-radius-card); padding: 32px; background: #fff; margin: 0 0 24px; }
.b2-panel--narrow { max-width: 480px; margin-left: auto; margin-right: auto; }
.b2-callout { background: var(--b2-soft); border: 1px solid var(--b2-line); border-radius: var(--b2-radius-card); padding: 24px; margin: 24px 0; }
.b2-callout .b2-actions { margin-top: 16px; }
.b2-result { padding: 8px 0 16px; }
.b2-result--ok .b2-h2::before { content: "✓"; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--b2-success); color: #fff; font-size: 16px; margin-right: 8px; vertical-align: 2px; }
.b2-section { margin: 0 0 40px; }
.b2-section__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.b2-section__head .b2-h3 { margin: 0; }

/* 表（定義リスト） */
.b2-table { margin: 0 0 24px; border-top: 1px solid var(--b2-line); }
.b2-table > div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--b2-line); }
.b2-table dt { font-weight: 700; color: var(--b2-text); margin: 0; }
.b2-table dd { margin: 0; overflow-wrap: anywhere; }
.b2-table--wide > div { grid-template-columns: 220px 1fr; }

/* 種類・タグ・状態 */
.b2-tag { display: inline-block; font-size: 13px; padding: 2px 8px; border-radius: 4px; background: #efe5cf; color: var(--b2-text); line-height: 1.6; }
.b2-tag--warn { background: var(--b2-warn-soft); color: var(--b2-warn); font-weight: 700; }
.b2-status { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 4px; line-height: 1.6; border: 1px solid var(--b2-line-strong); background: #fff; }
.b2-status--pending { color: var(--b2-warn); border-color: #c9a64a; background: var(--b2-warn-soft); }
.b2-status--accepted, .b2-status--completed { color: var(--b2-success); border-color: #7fbf98; background: var(--b2-success-soft); }
.b2-status--declined, .b2-status--withdrawn { color: var(--b2-muted); }
.b2-badge { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700; background: var(--b2-accent); color: #fff; border-radius: 999px; padding: 1px 8px; line-height: 1.6; }

/* 評価・件数 */
.b2-rating { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.b2-rating--none { color: var(--b2-muted); }
.b2-stars { position: relative; display: inline-block; width: 90px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 1.5l2.3 4.8 5.2.7-3.8 3.6.9 5.2L9 13.3l-4.6 2.5.9-5.2L1.5 7l5.2-.7z' fill='none' stroke='%238a7a66' stroke-width='1.2'/%3E%3C/svg%3E") repeat-x; background-size: 18px 18px; }
.b2-stars__fill { position: absolute; inset: 0 auto 0 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 1.5l2.3 4.8 5.2.7-3.8 3.6.9 5.2L9 13.3l-4.6 2.5.9-5.2L1.5 7l5.2-.7z' fill='%23d9a441'/%3E%3C/svg%3E") repeat-x; background-size: 18px 18px; }
.b2-rating__num { font-weight: 700; }
.b2-rating__count { color: var(--b2-muted); }
.b2-count { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; flex-wrap: wrap; }
.b2-count__label { color: var(--b2-muted); }
.b2-count__num { font-weight: 700; }
.b2-count__level { font-size: 13px; padding: 1px 8px; border: 1px solid var(--b2-line-strong); border-radius: 4px; }
.b2-rating-input { display: flex; gap: 8px; flex-wrap: wrap; }
.b2-rating-input__item { position: relative; }
.b2-rating-input__item input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.b2-rating-input__item span { display: grid; place-items: center; width: 52px; height: 48px; border: 1px solid var(--b2-line-strong); border-radius: var(--b2-radius-btn); font-weight: 700; font-size: 18px; background: #fff; }
.b2-rating-input__item input:checked + span { background: var(--b2-accent); border-color: var(--b2-accent); color: #fff; }
.b2-rating-input__item input:focus-visible + span { box-shadow: var(--b2-focus); }

/* アバター */
.b2-avatar { flex: none; display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; background: var(--b2-accent-soft); color: var(--b2-accent-strong); font-weight: 700; }
.b2-avatar--sm { width: 36px; height: 36px; font-size: 15px; }
.b2-avatar--md { width: 64px; height: 64px; font-size: 24px; }
.b2-avatar--lg { width: 96px; height: 96px; font-size: 36px; }
.b2-avatar__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b2-avatar-edit { display: flex; gap: 16px; align-items: flex-start; }
.b2-avatar-edit > div { min-width: 0; flex: 1; }
.b2-avatar-pick { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.b2-avatar-pick legend { padding: 0; }
.b2-avatar-pick__now { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.b2-avatar-pick__now-label { font-size: 14px; font-weight: 700; color: var(--b2-muted); }
.b2-avatar-pick__title { margin: 14px 0 8px; font-size: 14px; font-weight: 700; color: var(--b2-muted); }
.b2-avatar-pick__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.b2-avatar-pick__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 8px; border: 1.5px solid var(--b2-line); border-radius: var(--b2-radius-card); background: var(--b2-paper); cursor: pointer; text-align: center; }
.b2-avatar-pick__item input { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; margin: 0; accent-color: var(--b2-accent); }
.b2-avatar-pick__item:has(input:checked) { border-color: var(--b2-accent); background: var(--b2-accent-soft); box-shadow: 0 0 0 2px var(--b2-accent); }
.b2-avatar-pick__item:has(input:focus-visible) { box-shadow: var(--b2-focus); }
.b2-avatar-pick__name { font-size: 12px; line-height: 1.35; color: var(--b2-text); }
.b2-avatar-pick__own { margin: 0 0 10px; }
.b2-avatar-pick__own .b2-file { display: block; margin: 8px 0 4px; }
.b2-avatar-pick > .b2-check { margin-top: 6px; }

/* 検索・一覧 */
.b2-result-count { font-weight: 700; margin: 0 0 16px; }
.b2-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 12px; font-size: 14px; }
.b2-meta > div { display: flex; gap: 6px; }
.b2-meta dt { color: var(--b2-muted); margin: 0; }
.b2-meta dd { margin: 0; }
.b2-pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 32px 0; flex-wrap: wrap; }
.b2-simple-list { list-style: disc; padding-left: 1.4em !important; }
.b2-simple-list li { margin: 4px 0; }

/* 詳細・プロフィール */
.b2-service-detail__head { display: flex; gap: 8px; margin: 0 0 16px; }
.b2-prose { max-width: 720px; }
.b2-panel#b2-request { margin-top: 40px; background: var(--b2-soft); }
.b2-report { margin-top: 24px; font-size: 14px; }
.b2-review-list { list-style: none; display: grid; gap: 12px; }
.b2-review { border: 1px solid var(--b2-line); border-radius: var(--b2-radius-card); padding: 16px 20px; }
.b2-review__head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 0 0 8px; }

/* 申し込み */
.b2-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 24px; counter-reset: none; }
.b2-steps li { display: flex; gap: 8px; align-items: center; font-size: 14px; line-height: 1.5; padding: 12px; border-radius: var(--b2-radius-btn); background: #f1e8d3; color: var(--b2-muted); }
.b2-steps li.is-current { background: var(--b2-soft); color: var(--b2-text); font-weight: 700; box-shadow: inset 0 0 0 2px var(--b2-accent); }
.b2-steps__num { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid var(--b2-line-strong); font-weight: 700; }
.b2-steps li.is-current .b2-steps__num { background: var(--b2-accent); color: #fff; border-color: var(--b2-accent); }
.b2-conditions { border: 1px solid var(--b2-line); border-radius: var(--b2-radius-card); padding: 20px 24px; margin: 0 0 24px; background: var(--b2-soft); }
.b2-conditions__title { font-weight: 700; margin: 0 0 8px; }
.b2-conditions__list { list-style: none; display: grid; gap: 4px; }
.b2-conditions__list li { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--b2-line); }
.b2-conditions__list li:last-child { border-bottom: 0; }
.b2-conditions__key { color: var(--b2-muted); font-size: 15px; }
.b2-conditions__val { font-weight: 700; }
.b2-conditions__more { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--b2-line); font-size: 15px; }

/* 料金 */
.b2-price-box { text-align: center; border: 1px solid var(--b2-line); border-radius: var(--b2-radius-card); padding: 32px 24px; margin: 0 0 32px; background: linear-gradient(180deg, #fff 0%, var(--b2-soft) 100%); }
.b2-price-box__label { font-weight: 700; color: var(--b2-accent-strong); margin: 0 0 4px; }
.b2-price-box__price { margin: 0; line-height: 1.2; }
.b2-price-box__num { font-size: 48px; font-weight: 700; letter-spacing: .01em; margin: 0 4px; }
.b2-price-box__unit { font-size: 18px; font-weight: 700; }
.b2-price-box__tax { font-size: 18px; font-weight: 700; }
.b2-price-box__note { margin: 8px 0 0; color: var(--b2-muted); }
.b2-price-box__list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px !important; }
.b2-price-box__list li { background: #fff; border: 1px solid var(--b2-line); border-radius: 999px; padding: 4px 14px; font-size: 15px; font-weight: 700; }

/* マイページ */
.b2-mypage { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.b2-tabs__list { list-style: none; display: grid; gap: 4px; }
.b2-tabs__link { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: var(--b2-radius-btn); color: var(--b2-text); text-decoration: none; font-size: 15px; line-height: 1.5; border-left: 3px solid transparent; }
.b2-tabs__link:hover { background: #f1e8d3; }
.b2-tabs__link.is-current { background: var(--b2-soft); border-left-color: var(--b2-accent); font-weight: 700; }
.b2-tabs__logout { margin: 16px 0 0 14px; font-size: 14px; }
.b2-mypage > * { min-width: 0; }
.b2-mypage__body { min-width: 0; }
.b2-rows { list-style: none; border-top: 1px solid var(--b2-line); }
.b2-row { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--b2-line); }
.b2-row__main { display: flex; gap: 8px 12px; align-items: center; flex-wrap: wrap; min-width: 0; flex: 1 1 320px; }
.b2-row__title { font-weight: 700; color: var(--b2-text); overflow-wrap: anywhere; }
.b2-row__actions { display: flex; gap: 8px; }
.b2-request__head { margin-bottom: 16px; }
.b2-request__head .b2-h2 { margin: 8px 0 4px; }
.b2-thread { list-style: none; display: grid; gap: 12px; }
.b2-thread__item { border: 1px solid var(--b2-line); border-radius: var(--b2-radius-card); padding: 14px 16px; max-width: 92%; background: #fff; }
.b2-thread__item.is-mine { margin-left: auto; background: var(--b2-soft); }
.b2-thread__meta { font-size: 13px; color: var(--b2-muted); margin: 0 0 4px; }
.b2-thread__body p:last-child { margin-bottom: 0; }


/* 注意（警告） */
.b2-notice--warn { background: var(--b2-warn-soft); border-color: #ecd9a0; color: #5c4400; }
.b2-notice--warn .b2-notice__label { background: var(--b2-warn); }

/* 大きいボタン・折りたたみ */
.b2-btn--lg { min-height: 56px; padding: 12px 32px; font-size: 18px; }
.b2-details { border: 1px solid var(--b2-line); border-radius: var(--b2-radius-btn); background: #fff; padding: 0 16px; margin: 0 0 16px; }
.b2-details > summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--b2-accent-strong); }
.b2-details[open] > summary { border-bottom: 1px solid var(--b2-line); margin-bottom: 12px; }
.b2-details .b2-field { margin-bottom: 12px; }


/* 会員登録・ログインの選択画面 */
.b2-gate__art { max-width: 360px; margin: 0 auto 16px; }
.b2-gate__art img { width: 100%; height: auto; display: block; }
.b2-gate { max-width: 860px; margin: 0 auto; }
.b2-gate .b2-h2 { text-align: center; margin-top: 0; }
.b2-gate__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.b2-gate__card { border: 1px solid var(--b2-line); border-radius: var(--b2-radius-card); padding: 24px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.b2-gate__card .b2-h3 { margin: 0; }
.b2-gate__card .b2-actions { margin-top: auto; padding-top: 12px; }

/* 申し込み */
.b2-oneclick__from { background: var(--b2-soft); border: 1px solid var(--b2-line); border-radius: var(--b2-radius-btn); padding: 12px 16px; margin: 0 0 12px; font-size: 15px; }
.b2-review-form .b2-field { margin-bottom: 20px; }

/* 使い方 */
.b2-how__lead { font-size: 18px; line-height: 1.8; margin: 0 0 24px; }
.b2-how__steps { list-style: none; display: grid; gap: 28px; margin: 0 0 32px; }
.b2-how__step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; }
.b2-how__fig img { width: 100%; height: auto; display: block; border-radius: var(--b2-radius-card); border: 1px solid var(--b2-line); }
.b2-how__num { width: 36px; height: 36px; border-radius: 50%; background: var(--b2-accent); color: #fff; font-weight: 700; display: grid; place-items: center; margin: 0 0 8px; }
.b2-how__title { font-size: 20px; line-height: 1.5; margin: 0 0 8px; font-weight: 700; }
.b2 .b2-how__steps { margin-bottom: 32px; }
.b2 .b2-how__note { font-size: 15px; color: var(--b2-muted); margin: 0 0 16px; }

@media (prefers-reduced-motion: reduce) {
	.b2 * { transition: none !important; }
}

/* ==========================================================================
 * 第3版：弥生のやさしい色 + 新しい画面
 * ========================================================================== */

/* ステータス（案件） */
.b2-status--active { color: var(--b2-green-text); border-color: var(--b2-green); background: var(--b2-green-soft); }
.b2-status--done { color: #5c4400; border-color: var(--b2-gold); background: var(--b2-gold-soft); }
.b2-status--reviewed { color: var(--b2-success); border-color: #7fbf98; background: var(--b2-success-soft); }
.b2-status--quit { color: var(--b2-muted); border-color: var(--b2-line-strong); background: #f1e8d3; }
.b2-status--pending { color: var(--b2-warn); }
.b2-status--accepted { color: var(--b2-green-text); border-color: var(--b2-green); background: var(--b2-green-soft); }
.b2-count-chip { display: inline-block; margin-left: 8px; min-width: 1.8em; padding: 0 8px; font-size: 13px; font-weight: 700; line-height: 1.7; text-align: center; border-radius: 999px; background: #efe5cf; color: var(--b2-text); vertical-align: 2px; }
.b2-badge { background: var(--b2-accent); }
.b2-status--newmsg { color: #fff; background: var(--b2-accent); border-color: var(--b2-accent); }
.b2-case__excerpt--new { font-weight: 400; border-left: 4px solid var(--b2-accent); padding-left: 10px; }

/* 分野のタグ */
.b2-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; }
.b2-tag2 { display: inline-block; max-width: 100%; font-size: 14px; line-height: 1.5; font-weight: 700; padding: 3px 10px; border-radius: 999px; overflow-wrap: anywhere; border: 1px solid var(--b2-line-strong); background: #fff; color: var(--b2-text); }
.b2-tags--offer .b2-tag2 { border-color: var(--b2-accent); background: var(--b2-accent-soft); color: #6f2012; }
.b2-tags--want .b2-tag2 { border-color: var(--b2-green); background: var(--b2-green-soft); color: #264a3b; }

/* 分野のチェック（入力画面） */
.b2-chipgroup { margin: 0 0 16px; }
.b2-chipgroup__label { font-size: 14px; font-weight: 700; color: var(--b2-muted); margin: 0 0 6px; letter-spacing: .04em; }
.b2-chipgroup--acc { border: 1px solid var(--b2-line-strong); border-radius: 12px; background: var(--b2-paper); margin: 0 0 10px; }
.b2-chipgroup__sum { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; cursor: pointer; list-style: none; }
.b2-chipgroup__sum::-webkit-details-marker { display: none; }
.b2-chipgroup__sum .b2-chipgroup__label { margin: 0; flex: 1 1 auto; font-size: 16px; color: var(--b2-text); }
.b2-chipgroup__count { font-size: 13px; font-weight: 700; color: var(--b2-accent-strong); }
.b2-fieldset--want .b2-chipgroup__count { color: var(--b2-green-text); }
.b2-chipgroup__arrow { font-size: 13px; color: var(--b2-muted); transition: transform .15s; }
.b2-chipgroup--acc[open] > .b2-chipgroup__sum .b2-chipgroup__arrow { transform: rotate(180deg); }
.b2-chipgroup--acc > .b2-chips { padding: 4px 14px 14px; }
.b2-chipgroup__sum:focus-visible { box-shadow: var(--b2-focus); border-radius: 12px; }
.b2-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.b2-chip__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.b2-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--b2-line-strong); border-radius: 999px; background: var(--b2-paper); font-size: 15px; line-height: 1.4; cursor: pointer; user-select: none; overflow-wrap: anywhere; }
.b2-chip:hover { background: #f6ecd6; }
.b2-chip__input:checked + .b2-chip { background: var(--b2-accent); border-color: var(--b2-accent); color: #fff; font-weight: 700; }
.b2-chip__input:checked + .b2-chip::before { content: "✓"; margin-right: 6px; }
.b2-fieldset--want .b2-chip__input:checked + .b2-chip { background: var(--b2-green-text); border-color: var(--b2-green-text); }
.b2-chip__input:focus-visible + .b2-chip { box-shadow: var(--b2-focus); }
.b2-fieldset--offer { border-left: 5px solid var(--b2-accent); }
.b2-fieldset--want { border-left: 5px solid var(--b2-green); }

/* 検索（一覧） */
.b2-search { background: var(--b2-bg); border: 1px solid var(--b2-line); border-radius: var(--b2-radius-card); padding: 20px 24px; margin: 0 0 20px; }
.b2-search__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.b2-search .b2-field { margin: 0; min-width: 0; }
.b2-search__actions { margin-top: 12px; }
.b2-search__reset { margin: 12px 0 0; font-size: 15px; }

/* 一覧のカード（名前は出さない） */
.b2-sv-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; padding: 0; }
.b2-sv { margin: 0; display: flex; }
.b2-sv__link { display: flex; flex-direction: column; gap: 12px; width: 100%; padding: 16px 18px; border: 1px solid var(--b2-line); border-radius: var(--b2-radius-card); background: var(--b2-paper); color: var(--b2-text); text-decoration: none; box-shadow: 0 1px 2px rgba(42,36,32,.06); }
.b2-sv__link:hover { border-color: var(--b2-accent); }
.b2-sv__head { display: flex; align-items: center; gap: 14px; }
.b2-sv__avatar { display: block; flex: none; }
/* 一言コメント：顔写真の隣の吹き出し（最大26文字・2行）。しっぽは左（顔写真の側）。 */
.b2-sv__say { position: relative; flex: 0 1 auto; min-width: 0; max-width: calc(13em + 32px); margin: 0; padding: 9px 13px; border: 1.5px solid var(--b2-line-strong); border-radius: 14px; background: #fff; color: var(--b2-text); font-size: 14px; line-height: 1.5; }
.b2-sv__say::before, .b2-sv__say::after { content: ""; position: absolute; top: 50%; border: solid transparent; transform: translateY(-50%); }
.b2-sv__say::before { right: 100%; border-width: 8px 10px 8px 0; border-right-color: var(--b2-line-strong); }
.b2-sv__say::after { right: calc(100% - 2px); border-width: 7px 9px 7px 0; border-right-color: #fff; }
.b2-sv__say-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; word-break: break-all; }
.b2-sv__head--solo .b2-sv__say::before, .b2-sv__head--solo .b2-sv__say::after { display: none; }
.b2-sv__col { min-width: 0; }
.b2-sv__col .b2-tags { margin-bottom: 0; }
.b2-sv__label { font-size: 12px; font-weight: 700; color: var(--b2-muted); letter-spacing: .06em; margin: 0 0 4px; }
.b2-sv__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--b2-line); font-size: 14px; }
.b2-sv__area { color: var(--b2-muted); }
/* 口コミ（評価）は、ログインした会員だけ。ログインしていない人には、ぼかし（モザイク）の見本を出す（本当の値はHTMLに入れない） */
.b2-sv__rating--locked { position: relative; display: inline-flex; align-items: center; min-height: 28px; overflow: hidden; border-radius: 6px; }
.b2-mosaic { display: inline-block; padding: 2px 4px; color: var(--b2-muted); font-size: 14px; white-space: nowrap; filter: blur(5px); user-select: none; pointer-events: none; }
.b2-sv__rating--locked::after { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(rgba(120, 100, 80, .16) 0 25%, rgba(255, 255, 255, .0) 0 50%) 0 0 / 8px 8px; pointer-events: none; }
.b2-mosaic__note { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 0 6px; font-size: 12px; font-weight: 700; line-height: 1.3; text-align: center; color: var(--b2-text); text-shadow: 0 0 3px var(--b2-paper), 0 0 6px var(--b2-paper); }
.b2-sv__more { align-self: flex-start; font-size: 14px; font-weight: 700; color: var(--b2-accent-strong); text-decoration: underline; text-underline-offset: 3px; }

/* 相手のページ */
.b2-person__head { display: flex; gap: 20px; align-items: center; margin: 0 0 20px; }
.b2-person__id { min-width: 0; }
.b2-person__line { font-size: 17px; font-weight: 700; margin: 0 0 4px; overflow-wrap: anywhere; }
.b2-person__stats { margin: 0; }
.b2-person__section { margin: 0 0 24px; min-width: 0; }
.b2-person__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; margin: 0 0 24px; }
.b2-person__pair .b2-person__section { margin: 0; padding: 16px 18px; border: 1px solid var(--b2-line); border-radius: var(--b2-radius-card); background: var(--b2-paper); }
.b2-person__section--offer { border-top: 5px solid var(--b2-accent) !important; }
.b2-person__section--want { border-top: 5px solid var(--b2-green) !important; }
.b2-itemlist { margin: 4px 0 0 !important; padding-left: 1.3em !important; }
.b2-itemlist li { margin: 4px 0; overflow-wrap: anywhere; }
.b2-apply { background: var(--b2-bg); }
.b2-oneclick__bar { margin: 16px 0 12px; }
.b2-oneclick__bar .b2-btn { width: 100%; max-width: 420px; }

/* 口コミ */
.b2-review { border-radius: var(--b2-radius-card); background: var(--b2-paper); }
.b2-review__head { align-items: center; }
.b2-review__reply { margin: 12px 0 0 16px; padding: 10px 14px; border-left: 4px solid var(--b2-green); background: var(--b2-green-soft); border-radius: 0 var(--b2-radius-btn) var(--b2-radius-btn) 0; font-size: 15px; }
.b2-review__reply p:last-child { margin-bottom: 0; }
.b2-review__reply-head { font-size: 13px; font-weight: 700; color: #264a3b; margin: 0 0 4px; }
.b2-review-list { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.b2-review .b2-details { margin: 12px 0 0; }
/* 3.3.0：口コミの「何と何を交換したか」（表示）と、入力欄 */
.b2-review__swap { list-style: none; margin: 0 0 10px; padding: 8px 12px; display: grid; gap: 6px; border-radius: var(--b2-radius-btn); background: #fbf5e4; border: 1px solid var(--b2-line); font-size: 15px; }
.b2-review__swap li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.b2-review__swap-who { font-size: 13px; font-weight: 700; color: var(--b2-muted); }
.b2-review__swap-detail { font-weight: 700; overflow-wrap: anywhere; }
.b2-swap__block { margin: 12px 0 14px; padding: 12px 14px 14px; border: 1px solid var(--b2-line); border-radius: var(--b2-radius-card); background: #fff; }
.b2-swap__title { margin: 0 0 8px; font-weight: 700; }
.b2-swap__sub { font-weight: 400; font-size: 14px; color: var(--b2-muted); }
.b2-swap__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 12px; }
.b2-swap__label { display: block; margin: 0 0 4px; font-size: 14px; font-weight: 700; }
@media (max-width: 600px) { .b2-swap__row { grid-template-columns: 1fr; } }

/* マイページ */
.b2-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 18px; margin: 0 0 24px; border: 2px solid var(--b2-gold); border-radius: var(--b2-radius-card); background: var(--b2-gold-soft); }
.b2-banner__text { margin: 0; flex: 1 1 260px; }
.b2-welcome { border-color: var(--b2-gold); background: var(--b2-gold-soft); margin-top: 0; }
.b2-todo { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.b2-todo__btn { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 16px; border: 1px solid var(--b2-line-strong); border-radius: var(--b2-radius-card); background: var(--b2-paper); color: var(--b2-text); text-decoration: none; font-weight: 700; }
.b2-todo__btn:hover { background: #f6ecd6; }
.b2-todo__btn--hot { border-color: var(--b2-accent); background: var(--b2-accent-soft); }
.b2-todo__num { flex: none; display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; background: var(--b2-accent); color: #fff; font-size: 15px; }
.b2-todo__btn:not(.b2-todo__btn--hot) .b2-todo__num { background: var(--b2-green-text); }
.b2-empty { text-align: center; padding: 16px 0 8px; }
.b2-empty img { width: 160px; max-width: 60%; height: auto; }

/* 交換の一覧・案件 */
.b2-cases { list-style: none; display: grid; gap: 12px; margin: 0 0 8px; padding: 0; }
.b2-case { padding: 14px 16px; border: 1px solid var(--b2-line); border-radius: var(--b2-radius-card); background: var(--b2-paper); }
.b2-case__main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.b2-case__name { font-weight: 700; font-size: 17px; color: var(--b2-text); overflow-wrap: anywhere; }
.b2-case__meta { margin: 4px 0 8px; }
.b2-case__excerpt { margin: 0 0 8px; font-size: 15px; color: var(--b2-text); overflow-wrap: anywhere; }
.b2-case__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.b2-case__actions .b2-btn { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.b2-statebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.b2-statebar--fixed { margin: 0 0 8px; }
.b2-statebar__label { font-size: 14px; font-weight: 700; color: var(--b2-muted); }
.b2-statebar__btns { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.b2-statebtn { min-height: 44px; padding: 8px 16px; border: 1px solid var(--b2-line-strong); border-radius: var(--b2-radius-btn); background: var(--b2-paper); color: var(--b2-text); font-family: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.b2-statebtn:hover { background: #f6ecd6; }
.b2-statebtn.is-current { font-weight: 700; cursor: default; }
.b2-statebtn.is-current::before { content: "✓ "; }
.b2-statebtn--active.is-current { background: var(--b2-green-text); border-color: var(--b2-green-text); color: #fff; }
.b2-statebtn--done.is-current { background: var(--b2-gold); border-color: #a9791a; color: #2a2420; }
.b2-statebtn--quit.is-current { background: #6b5f55; border-color: #6b5f55; color: #fff; }
.b2-statebtn:focus-visible { outline: none; box-shadow: var(--b2-focus); }
.b2-counterpart { display: flex; gap: 16px; align-items: flex-start; }
.b2-counterpart__body { min-width: 0; flex: 1; }
.b2-counterpart__body .b2-h2 { margin: 0 0 4px; }
.b2-counterpart__tags { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0 0 6px; }
.b2-counterpart__tags .b2-tags { margin: 0; }
.b2-statuspanel { padding: 14px 16px; border: 1px solid var(--b2-line); border-radius: var(--b2-radius-card); background: var(--b2-bg); }
.b2-details > summary { min-height: 44px; display: flex; align-items: center; }

/* 入力画面 */
.b2-actions--sticky { margin-top: 8px; }
.b2-oneclick__from { background: var(--b2-bg); }

/* 使い方・ゲート */
.b2-how__num { background: var(--b2-accent); }
.b2-gate__art { max-width: 320px; }

/* スマホ（782px以下）：1列・全幅ボタン・折り返し */
@media (max-width: 782px) {
	.b2 { font-size: 16px; }
	.b2-mypage { grid-template-columns: 1fr; gap: 16px; }
	.b2-tabs__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
	.b2-tabs__link { justify-content: center; text-align: center; border: 1px solid var(--b2-line-strong); border-radius: var(--b2-radius-btn); padding: 8px 2px; min-height: 48px; font-size: clamp(12px, 3.4vw, 14px); line-height: 1.3; white-space: nowrap; flex-wrap: wrap; gap: 2px; }
	.b2-tabs__link.is-current { background: var(--b2-accent); border-color: var(--b2-accent); color: #fff; }
	.b2-tabs__link.is-current .b2-badge { background: #fff; color: var(--b2-accent-strong); }
	.b2-tabs__logout { display: none; }
	.b2-table > div, .b2-table--wide > div { grid-template-columns: 1fr; gap: 4px; }
	.b2-panel { padding: 20px 16px; }
	.b2-fieldset { padding: 16px; }
	.b2-search { padding: 16px; }
	.b2-search__row { grid-template-columns: 1fr; gap: 12px; }
	.b2-sv-grid { grid-template-columns: 1fr; }
	.b2-person__pair { grid-template-columns: 1fr; }
	.b2-person__head { flex-direction: column; align-items: flex-start; gap: 12px; }
	.b2-conditions__list li { grid-template-columns: 1fr; gap: 0; }
	.b2-gate__choices { grid-template-columns: 1fr; }
	.b2-how__step { grid-template-columns: 1fr; gap: 12px; }
	.b2-actions .b2-btn, .b2-case__actions .b2-btn, .b2-banner .b2-btn { flex: 1 1 100%; width: 100%; min-height: 48px; }
	.b2-btn--lg { width: 100%; }
	.b2-statebar { flex-direction: column; align-items: stretch; }
	.b2-statebar__btns { display: grid; grid-template-columns: 1fr; }
	.b2-statebtn { width: 100%; }
	.b2-counterpart { flex-direction: column; }
	.b2-thread__item { max-width: 100%; }
	.b2-row__actions .b2-btn { flex: none; }
	.b2-price-box__num { font-size: 40px; }
	.b2-avatar-edit { flex-direction: column; }
	.b2-review__reply { margin-left: 0; }
	.b2-actions--sticky { position: sticky; bottom: 0; z-index: 20; margin: 0 -16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--b2-bg); border-top: 1px solid var(--b2-line); }
	.b2-person.has-bar { padding-bottom: 88px; }
	.b2-person.has-bar .b2-oneclick__bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; margin: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--b2-bg); border-top: 1px solid var(--b2-line); box-shadow: 0 -2px 10px rgba(42,36,32,.14); }
	.b2-person.has-bar .b2-oneclick__bar .b2-btn { max-width: none; }
}

/* 一覧の吹き出し（一言コメント）：狭い画面では文字を少し小さくして、26文字が2行に収まるようにする */
@media (max-width: 400px) {
	.b2-sv__say { font-size: 13px; padding: 8px 11px; }
	.b2-sv__head { gap: 12px; }
}

/* 3.7.0 */
.b2-steps-list { margin: 0 0 16px; padding-left: 1.4em; }
.b2-steps-list li { margin: 0 0 10px; }

/* 3.8.0：会員登録の本人確認書類（表面・裏面のファイル欄） */
.b2-idup { border: 1px solid var(--b2-line, #e5d9bf); border-radius: 8px; padding: 16px; margin: 0 0 24px; min-width: 0; }
.b2-idup legend { padding: 0 8px; }
.b2-idup__item { margin: 16px 0 0; }
.b2-idup__item .b2-label { display: block; margin-bottom: 6px; }
.b2-idup__note { margin-top: 16px; }
.b2-idup__size[hidden] { display: none; }
