@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600&family=Noto+Serif+JP:wght@400;500;600&display=swap');
@font-face {
  font-family: 'Parisienne';
  src: url('/assets/brand/parisienne.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
/* 採用案「白 × 編集デザイン × ほのかな可愛さ」。配置は既存仕様を維持する。 */
:root {
  /* 配色正本。用途と一覧は案件設計書「共通カラー一覧」を参照。 */
  --color-white: #ffffff;
  --color-text: #332f30;
  --color-muted: #6a6265;
  --color-rose: #804c60;
  --color-border: #c6a5b3;
  --color-control-border: #aa8294;
  --color-line: #e8dde2;
  --color-soft: #faf5f7;
  --color-selected: #f3e6ec;
  --color-hover: #e8d2dd;
  --color-success: #38634e;
  --color-warning: #795717;
  --color-error: #963c4b;
  --surface: var(--color-white);
  --surface-soft: var(--color-soft);
  --surface-selected: var(--color-selected);
  --surface-hover: var(--color-hover);
  --accent: var(--color-rose);
  --accent-border: var(--color-border);
  --status-success: var(--color-success);
  --status-warning: var(--color-warning);
  --status-error: var(--color-error);
  --overlay: color-mix(in srgb, var(--color-text) 20%, transparent);

  --ink:var(--color-text);
  --muted:var(--color-muted);
  --line:var(--color-line);
  --bg:var(--surface);
  --green:var(--accent);
  --green-dark:var(--accent);
  --green-light:var(--surface-selected);
  --shadow:none;
  --font-sans: "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic", sans-serif;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: auto;
  --rule:var(--line);
  --control-border:var(--color-control-border);
  --copy-spacing: .055em;
  --label-spacing: .035em;
  --editorial-rose:var(--accent);
  --editorial-serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --brand-script: 'Parisienne', cursive;
  --button-primary:var(--surface-selected);
  --button-primary-hover:var(--surface-hover);
  --button-primary-text:var(--accent);
  --button-primary-border:var(--accent-border);
  --button-primary-border-hover:var(--accent);
  --button-secondary-text:var(--accent);
  --button-secondary-border:var(--accent-border);
  --button-secondary-border-hover:var(--accent);
  --approval-background:var(--surface);
  --approval-color:var(--accent);
  --approval-border:var(--accent-border);
  --button-secondary-hover:var(--surface-selected);
  --button-primary-sheen:none;
  --button-secondary-sheen:linear-gradient(120deg, var(--surface) 15%, var(--surface-soft));
  --scroll-thumb:var(--accent-border);
  --scroll-track:var(--surface-soft);
  --selection-duration: 400ms;
  --interaction-duration: 1100ms;
  --interaction-easing: cubic-bezier(.25,.1,.25,1);
}

h1, h2, h3, h4 { letter-spacing: .015em; font-weight: 500; }
button, input, select, textarea { font-family: inherit; letter-spacing: inherit; }
button, a, summary { transition: color var(--interaction-duration) var(--interaction-easing), background-color var(--interaction-duration) var(--interaction-easing), border-color var(--interaction-duration) var(--interaction-easing), box-shadow var(--interaction-duration) var(--interaction-easing); }
a { text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline-color: var(--ink); outline-width: 3px; outline-offset: 3px; }
/* 入力中の枠は即時に切り替え、外側の影と二重の線を出さない。 */
input, select, textarea, .search-input, .field-control, .filter-prefecture { transition: none; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: none; border-color: var(--accent); }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }

/* チェックのマークだけを動かす。入力のフォーカス枠は即時のまま。 */
input[type="checkbox"], input[type="radio"] {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--control-border);
  border-radius: 0;
  background: var(--surface);
  vertical-align: middle;
  transition: background-color var(--selection-duration) var(--interaction-easing);
}
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]::before, input[type="radio"]::before {
  content: '';
  width: 11px;
  height: 9px;
  background: var(--surface);
  clip-path: polygon(0 43%, 18% 25%, 40% 49%, 81% 0, 100% 17%, 40% 100%);
  opacity: var(--selection-mark-opacity, 0);
  transform: var(--selection-mark-transform, scale(.65));
  transition: opacity var(--selection-mark-duration,var(--selection-duration)) var(--interaction-easing), transform var(--selection-mark-duration,var(--selection-duration)) var(--interaction-easing);
}
input[type="radio"]::before { width: 8px; height: 8px; clip-path: none; border-radius: 50%; }
input[type="checkbox"]:checked, input[type="radio"]:checked { background: var(--accent); }
input[type="checkbox"]:checked::before, input[type="radio"]:checked::before {
  opacity: var(--selection-mark-opacity, 1);
  transform: var(--selection-mark-transform, scale(1));
}
input[type="checkbox"]:disabled, input[type="radio"]:disabled { opacity: .5; }
@media (forced-colors: active) {
  input[type="checkbox"], input[type="radio"] { appearance: auto; }
  input[type="checkbox"]::before, input[type="radio"]::before { display: none; }
}


/* ヘッダー・共通の操作 */
.workspace { width: 100%; max-width: none; border: 0; display: flex; flex-direction: column; }
.workspace > .app-header, .workspace > .site-footer { flex-shrink: 0; }
.workspace > main { flex: 1; min-height: 0; }
.app-header { padding-inline: 0; height: 72px; border-bottom-color: var(--rule); background: var(--surface); }
.brand, .info-brand {
  min-height: 44px;
  font-family: var(--brand-script);
  font-size: 32px;
  line-height: 1.5;
  color: var(--accent);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
}
.brand .brand-logo, .info-brand .brand-logo {
  display: block;
  width: 154px;
  height: auto;
  flex-shrink: 0;
}
.app-header .app-nav { gap: 12px; align-self: stretch; }
.app-header .app-nav > button {
  padding:var(--control-padding-block,10px) var(--control-padding-inline,15px);
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size:var(--control-font-size,13px);
  color: var(--muted); font-weight:var(--control-font-weight,400); letter-spacing: var(--label-spacing);}
.app-header .app-nav > button.active { color: var(--ink); border-bottom-color: transparent; background: var(--green-light); }
.app-header .app-nav > button:hover { color: var(--ink); background: var(--surface-soft); }
.app-header .app-nav > button[data-page="favorites"]:hover { color: var(--editorial-rose); background: transparent; }
.app-header .icon-btn { border: 1px solid var(--line); border-radius: 0; background: var(--surface); border-color: var(--rule);}
.icon-btn { border-radius: 0; color: var(--muted); }
.icon-btn:hover { background: var(--surface-soft); color: var(--ink); }
.demo-badge { font-size: 13px; letter-spacing: .03em; }
.nav-unread, .condition-badge, .filter-open b, .filter-count, .count, .menu-dot { border-radius: 0; }

.btn, .directory-results .card-actions .btn, .filter-drawer-footer .btn,
.filter-open, .field-control, .filter-prefecture, .search-input,
.directory-query .search-input, .option-chip, .filter-chip { border-radius: 0; }
.btn { font-size:var(--control-font-size,14px); min-height:var(--control-height,44px); font-weight:var(--control-font-weight,600); transition: background-color var(--interaction-duration) var(--interaction-easing), border-color var(--interaction-duration) var(--interaction-easing), color var(--interaction-duration) var(--interaction-easing), opacity var(--interaction-duration) var(--interaction-easing); border-radius: 0; box-shadow: none;}
.btn.primary { background: var(--button-primary-sheen) var(--button-primary); color: var(--button-primary-text); border-color: var(--button-primary-border); border-radius: 0; box-shadow: none;}
.btn.primary:hover:not(:disabled) { background-image: var(--button-primary-sheen); background-color: var(--button-primary-hover); border-color: var(--button-primary-border-hover); transform: none; }
.btn.secondary { color: var(--button-secondary-text); border-color: var(--button-secondary-border); background: var(--button-secondary-sheen) var(--surface); background-blend-mode: multiply; border-radius: 0; box-shadow: none;}
.btn.secondary:hover:not(:disabled) { background-image: var(--button-secondary-sheen); background-color: var(--button-secondary-hover); border-color: var(--button-secondary-border-hover); }
.btn.selected-btn { background: var(--green-light); color: var(--green); border-color: var(--green); }
.text-btn { font-size:var(--control-font-size,14px); font-weight:var(--control-font-weight,700); }

/* マイページの各機能への入口。 */
.account-page { max-width: 720px; }
.account-name-form { margin: 0 0 24px; }
.account-icon-editor { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.account-icon-editor > div { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.account-name-form > label { display: block; margin-bottom: 8px; }
.account-name-controls { display: flex; align-items: center; gap: 12px; }
.account-name-controls .field-control { min-width: 0; margin-top: 0; }
.account-name-controls .btn { flex-shrink: 0; }
.chat-message-body > small { overflow-wrap: anywhere; }
.messenger-sidebar { min-width: 0; }
.account-page > .form-panel:has(#message-email-notices) {
  margin-top: 24px;
  padding: 24px;
}
.account-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; margin: 0 0 32px; color: var(--muted); }
.account-name span { overflow-wrap: anywhere; }
.account-links { display: grid; grid-template-columns: minmax(0, 1fr); gap:var(--action-gap,12px); }
.account-links .account-link { display: flex; align-items: center; justify-content: space-between; gap:var(--action-gap,16px); font-size:var(--control-font-size,17px); }
.account-links .account-link, .brand-page .brand-genre-card { min-height:var(--control-height,56px); padding:var(--control-padding-block,14px) var(--control-padding-inline,20px); }
.account-page .dialog-actions { margin-top: 32px; }

/* 左の条件と右の一覧 */
main { width: 100%; max-width: var(--content-width); margin-inline: auto; padding-top: 36px; }
.directory-search { gap: 32px; }
.filter-sidebar { border: 0; border-radius: 0; border-color: var(--rule); background: var(--surface); top: 96px; box-shadow: none;}
.filter-modebar { padding: 0; border-bottom: 0; border-color: var(--rule);}
.filter-modebar .mode-tabs { background: transparent; padding: 0; gap: 8px; border-radius: 0; border-bottom: 0; box-shadow: none;}
.filter-modebar .mode-tabs button { padding:var(--control-padding-block,8px) var(--control-padding-inline,0); min-height:var(--control-height,44px); font-size:var(--control-font-size,14px); border-radius: 0; border: 1px solid var(--button-secondary-border); color: var(--button-secondary-text); font-weight:var(--control-font-weight,500); box-shadow: none;}
.filter-modebar .mode-tabs button.active { border-color: var(--button-primary-border); color: var(--button-primary-text); background: var(--button-primary-sheen) var(--button-primary); box-shadow: none; font-weight: 500; }
.filter-modebar .mode-tabs button.active:hover { background-color: var(--button-primary-hover); border-color: var(--button-primary-border-hover); }
.filter-scroll { padding-inline: 0; max-height: max(120px, calc(100dvh - 320px)); }
.search-filter > summary { font-size: 14px; font-weight: 500; min-height: 56px; letter-spacing: var(--label-spacing);}
.search-filter > summary:hover { background-color: var(--green-light); }
.accordion-mark { color: var(--ink); }
.filter-check { font-size: 14px; font-weight: 400; min-height: 42px; gap: 10px; padding-block: 9px; transition: color var(--interaction-duration) var(--interaction-easing), background-color var(--interaction-duration) var(--interaction-easing); }
.filter-check input[type=checkbox], .filter-check input[type=radio] { width: 18px; height: 18px; min-width: 18px; margin-top: 2px; }
.filter-check:hover { background: var(--green-light); }
.filter-help, .filter-no-match, .filter-clear { font-size: 13px; }
.filter-check:has(input:checked) { font-weight: 500; color: var(--ink); }
.filter-check:has(input:checked) { background: transparent; }
.carried-filters { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 13px; }
.carried-filters .chip-list { margin-top: 8px; gap: 6px; }
.carried-filters .filter-chip { max-width: 100%; white-space: normal; text-align: left; font-size:var(--control-font-size,13px); background: var(--surface); border-color: var(--control-border); }
.carried-filters .filter-chip .icon { flex-shrink: 0; }
.filter-prefecture { border-color: var(--control-border); border-radius: 0; background: var(--surface); box-shadow: none;}
.filter-option-search { border-color: var(--control-border); }
.filter-clear { color: var(--button-secondary-text); border-color: var(--button-secondary-border); font-weight:var(--control-font-weight,700); margin-top: 16px; background: var(--button-secondary-sheen) var(--surface); background-blend-mode: multiply; }
.filter-clear:hover { background-color: var(--button-secondary-hover); border-color: var(--button-secondary-border-hover); }
.search-input { border-color: var(--control-border); color: var(--ink); }
.directory-query .search-input input { font-size: 16px; }
.search-input input::placeholder { color: var(--muted); }
.search-input:focus-within, .directory-query .search-input:focus-within { border-color: var(--accent); box-shadow: none; }
.directory-query { margin-bottom: 24px; }
.directory-query .search-input { min-height: 52px; padding-inline: 16px; border-radius: 0; border-color: var(--control-border); background: var(--surface); box-shadow: none;}
.directory-results-heading { padding-bottom: 15px; margin-bottom: 22px; border-bottom-color: var(--rule); border-color: var(--rule);}
.directory-results-heading h1 { font-size: 17px; font-weight: 600; }
.directory-results-heading strong { color: var(--ink); font-size: 26px; font-weight: 500; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.directory-results-heading small { font-size: 13px; color: var(--muted); }
.directory-results .result-conditions { margin-bottom: 20px; }
.directory-results .filter-chip { background: var(--surface); border-color: var(--rule); }
.directory-results .provider-grid { gap:var(--card-gap,20px); }
.directory-results .provider-card { padding: 24px 20px 14px; border-radius: 0; border-color: var(--control-border); background: var(--surface); }
.directory-results .provider-card.is-selected { border-color: var(--green); background: var(--green-light); box-shadow: inset 0 3px 0 var(--green); }
.provider-avatar, .provider-avatar.large, .provider-avatar.small,
.directory-results .provider-avatar { border-radius: 0; color: var(--ink); font-weight: 500; }
.directory-results .provider-avatar { width: 56px; height: 56px; font-size: 24px; }
.directory-results .card-top { gap: 12px; align-items: center; }
.kind-label, .directory-results .kind-label { font-size: 13px; color: var(--muted); font-weight: 400; letter-spacing: .03em; }
.directory-results .card-top h3 { font-size: 17px; line-height: 1.65; letter-spacing: .005em; }
.directory-results .card-top h3 button { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; max-height: 3.3em; overflow: hidden; text-overflow: ellipsis; width: 100%; font-weight: 700; }
.directory-results .card-location { font-size: 13px; margin-top: 17px; column-gap: 4px; }
.directory-results .card-description { font-size: 15px; line-height: 1.85; color: var(--ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; height: 5.55em; min-height: 5.55em; max-height: 5.55em; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; margin: 16px 0; }
.card-tags span, .directory-results .card-tags span, .profile-group .card-tags span { border-radius: 0; background: var(--surface-soft); color: var(--ink); font-size: 13px; padding: 3px 7px; line-height: 1.65; }
.profile-group .card-tags .profile-tag { display: inline-flex; align-items: center; gap: 5px; white-space: normal; }
.profile-location { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.profile-ai { display: grid; justify-items: start; gap: 6px; }
.profile-group .card-tags .matched, .profile-hero .profile-match, .profile-group .profile-match { color: var(--green-dark); background: var(--green-light); font-weight: 700; }
.profile-match { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; }
.profile-match .icon { width: 15px; height: 15px; stroke-width: 2.5; }
.directory-results .card-actions { border-color: var(--line); padding-top: 12px; margin-top: auto; gap: 8px; }
.directory-results .card-actions .text-btn { color: var(--green); min-height:var(--control-height,44px); font-size:var(--control-font-size,14px); }
.directory-results .card-actions .btn { font-size:var(--control-font-size,14px); min-height:var(--control-height,44px); min-width: 96px; padding-inline:var(--control-padding-inline,12px); color: var(--green); border-color: var(--green); background: var(--surface); }
.directory-results .card-actions .btn:hover { background-color: var(--green-light); }
.directory-results .card-actions .btn.selected-btn { color: var(--accent); background: var(--surface-selected); }
.directory-results .card-actions .btn.selected-btn:hover { background-color: var(--surface-hover); }
.selection-tray { border-radius: 0; border-color: var(--control-border); box-shadow: 0 8px 28px color-mix(in srgb, var(--ink) 7.84%, transparent); padding: 14px 20px; }
.tray-summary strong { font-weight: 600; }
#toast { border-radius: 0; background: var(--ink); box-shadow: 0 6px 24px color-mix(in srgb, var(--ink) 10.20%, transparent); }

/* 相談・掲載・プロフィール */
.form-panel, .recipients-panel, .request-card, .completion, .empty-state,
.chat-page, dialog, .actor-option, .notice, .form-error { border-radius: 0; box-shadow: none; }
.compact-intro { margin-bottom: 30px; }
.compact-intro h1 { font-size: 26px; }
.form-section { padding: 30px; border-bottom-color: var(--line); }
.form-section h2 { font-weight: 600; font-size: 16px; }
.section-number { border-radius: 0; background: var(--surface-soft); color: var(--ink); font-size: 13px; font-weight: 400; }
.field-label { font-size: 15px; font-weight: 600; }
.field-label > span { color: var(--muted); }
.field-label .required { border-radius: 0; background: var(--surface-soft); color: var(--ink); }
.field-control { border-color: var(--control-border); font-size: 16px; min-height: 48px; border-radius: 0; background: var(--surface); box-shadow: none;}
.field-control:focus { border-color: var(--accent); outline: none; box-shadow: none; }
.field-help, .aside-tip, .summary-list dt, .profile-category summary span { color: var(--muted); }
.summary-list { font-size: 14px; line-height: 1.9; }
.summary-list dt { font-size: 13px; }
.recipients-panel { padding: 22px; }
.recipients-heading > span { background: var(--surface-soft); color: var(--ink); border-radius: 0; }
.recipient-row, .profile-category { border-bottom-color: var(--line); }
.profile-option { min-height: 36px; }
.profile-category { padding: 0; }
.profile-category > summary { min-height: 68px; width: 100%; padding: 16px; display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.profile-category > summary::-webkit-details-marker { display: none; }
.profile-category > summary span { margin-left: auto; float: none; font-size: 14px; white-space: nowrap; }
.profile-category > summary::after { content: '+'; flex: 0 0 20px; text-align: center; font-size: 22px; line-height: 1; font-weight: 400; }
.profile-category[open] > summary::after { content: '−'; }
.profile-category[data-motion-open="false"] > summary::after { content: '+'; }
.profile-category > summary:hover, .profile-category > summary:focus-visible { background: var(--green-light); }
.profile-category > .profile-options { padding: 12px 16px 20px; }
.notice { background: var(--surface-soft); border-color: var(--line); color: var(--muted); font-size: 13px; }
.completion-icon { border-radius: 0; background: var(--green-light); }
.completion > p, .empty-state p { color: var(--muted); }
.empty-state { border-style: solid; border-color: var(--line); background: var(--surface-soft); }
.empty-state > .icon { color: var(--muted); }
.consultation-tabs { gap: 30px; }
.consultation-tabs button { min-height: 48px; border-bottom-width: 2px; }
.consultation-tabs button.active { border-bottom-color: var(--ink); color: var(--ink); }
.request-card { padding: 24px; }
.request-card:hover { border-color: var(--control-border); background: var(--surface-soft); }
.request-symbol { border-radius: 0; background: var(--surface-soft); color: var(--muted); }
.request-meta, .request-card small { color: var(--muted); }
.status-tag { border-radius: 0; background: var(--green-light); color: var(--green); }
.status-tag.closed { background: var(--surface-soft); color: var(--muted); }

.field-label > span, .field-label .required, .field-help,
.recipient-row small, .recipients-panel > .text-btn, .aside-tip p,
.budget-field > small, .sent-recipient small, .request-card small,
.request-meta, .status-tag, .actor-option small, .tray-summary small,
.chat-message small { font-size: 13px; color: var(--muted); }
.recipient-row strong, .sent-recipient strong, .profile-option { font-size: 14px; }
.profile-category summary { font-size: 15px; font-weight: 700; }
.field-control::placeholder { color: var(--muted); opacity: 1; }
.option-chip { border-color: var(--control-border); }
.option-chip.selected { color: var(--green); background: var(--green-light); border-color: var(--green); }
.request-card strong { font-size: 16px; }
.status-tag { color: var(--green); font-weight: 700; }

/* モーダルとメッセージ */
dialog { border-color: var(--control-border); padding: 30px; box-shadow: none; }
dialog::backdrop { background: color-mix(in srgb, var(--ink) 20.00%, transparent); backdrop-filter: blur(2px); }
.dialog-heading { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 24px; }
.dialog-heading h2 { font-weight: 600; }
.dialog-lead, .profile-description, .profile-group p, .profile-hero p,
.actor-option small, .guide-steps p { color: var(--muted); }
.profile-availability { margin: 12px 0; }
.profile-description { font-size: 15px; }
.profile-group h4 { font-size: 13px; }
.profile-hero h3 { font-size: 23px; }
.actor-option { border-color: var(--line); }
.actor-option:hover { border-color: var(--control-border); background: var(--surface-soft); }
.actor-option > .icon { color: var(--muted); }
.chat-heading { padding: 20px; }
.chat-heading h1 { font-size: 19px; }
.chat-log { background: var(--surface-soft); }
.chat-message p, .chat-message.mine p, .chat-compose textarea { border-radius: 0; }
.chat-message p { padding: 14px 18px; border-color: var(--line); }
.chat-message.mine p { background: var(--green-light); border-color: var(--line); color: var(--ink); }
.chat-compose { padding: 20px; }
.chat-compose textarea { border-color: var(--control-border); }
.chat-compose textarea:focus { outline: none; box-shadow: none; border-color: var(--ink); }

/* 最小限の案内ページ */
.site-footer { padding-top: 28px; padding-bottom: 28px; border-color: var(--rule); background: var(--surface); }
.site-footer a { color: var(--muted); font-size: 13px; }
.site-footer small { font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.info-header { height: 72px; }
.info-main { padding-top: 56px; }
.info-main h1 { font-size: 28px; margin-bottom: 40px; }
.info-main h2 { margin-top: 32px; font-weight: 600; }
.info-main p { color: var(--ink); font-size: 15px; line-height: 2; }

@media (min-width: 761px) and (max-width: 1120px) {
  .directory-search { gap: 24px; }
}

@media (max-width: 760px) {
  .app-header, .info-header { height: 64px; }
  .brand, .info-brand { gap: 8px; }
  main { padding-top: 24px; }
  .directory-query { margin-bottom: 22px; }
  .directory-query .search-input { padding-inline: 12px; min-height: 48px; border-radius: 0; border-color: var(--control-border); background: var(--surface); box-shadow: none;}
  .directory-results-heading { margin-bottom: 20px; padding-bottom: 12px; border-color: var(--rule);}
  .directory-results-heading h1 { font-size: 17px; }
  .directory-results-heading strong { font-size: 25px; color: var(--ink); font-weight: 500;}
  .directory-results .provider-grid { gap:var(--card-gap,16px); }
  .directory-results .provider-card { padding: 22px 18px 14px; }
  .directory-results .provider-avatar { width: 60px; height: 60px; font-size: 26px; }
  .directory-results .card-description { -webkit-line-clamp: 2; line-clamp: 2; height: 3.7em; min-height: 3.7em; max-height: 3.7em; }
  .directory-results .card-actions .btn { font-size:var(--control-font-size,14px); min-height:var(--control-height,44px); }
  .filter-open { min-height:var(--control-height,48px); }
  .filter-sidebar { top: 0; box-shadow: none; border-color: var(--rule); border-radius: 0;}
  .filter-overlay, .menu-overlay { background: color-mix(in srgb, var(--ink) 20.00%, transparent); }
  .filter-modebar { padding: 0 20px 12px; border-color: var(--rule);}
  .filter-modebar .mode-tabs { gap: 0; border-radius: 0; box-shadow: none;}
  .filter-modebar .mode-tabs button { min-height:var(--control-height,44px); font-size:var(--control-font-size,14px); border-radius: 0; box-shadow: none;}
  .filter-scroll { padding-inline: 20px; max-height: none; }
  .filter-drawer-heading h2, .menu-heading h2 { font-weight: 600; }
  .filter-drawer-footer .btn { min-height:var(--control-height,50px); }
  .site-menu { box-shadow: none; }
  .app-header .site-menu .app-nav { align-self: stretch; gap: 0; }
  .app-header .site-menu .app-nav > button { padding:var(--control-padding-block,18px) var(--control-padding-inline,12px); border-bottom: 1px solid var(--line); border-left: 2px solid transparent; font-weight:var(--control-font-weight,500); }
  .app-header .site-menu .app-nav > button.active { border-left-color: var(--green); background: var(--green-light); color: var(--ink); font-weight: 700; }
  .selection-tray { padding: 12px 16px; }
  .form-section { padding: 24px 20px; }
  .compact-intro h1 { font-size: 24px; }
  .profile-option { min-height: 44px; }
  .request-card { padding: 20px 16px; }
  .request-meta { flex-wrap: wrap; gap: 8px; }
  .chat-page { margin: -8px -16px 0; }
  .chat-heading { padding: 14px 16px; }
  .chat-heading h1 { font-size: 17px; }
  .chat-compose { padding: 14px 12px; }
  .chat-message p { padding: 12px 14px; }
  dialog { padding: 22px 18px; }
  .site-footer { padding: 24px 16px; border-color: var(--rule);}
  .info-main { padding-top: 36px; }
  .info-main h1 { font-size: 25px; margin-bottom: 32px; }
}

@media (max-width: 599px) {
  .directory-results .provider-card { padding: 24px 22px 16px; }
  .directory-results .card-top h3 { font-size: 17px; }
  .directory-results .kind-label { font-size: 13px; }
  .directory-results .card-location { font-size: 13px; margin-top: 16px; }
  .directory-results .card-description { margin: 15px 0; }
  .directory-results .card-actions .btn { min-width: 110px; font-size:var(--control-font-size,14px); }
  .directory-results .card-actions .text-btn { font-size:var(--control-font-size,14px); }
}

@media (max-width: 380px) {
  .brand { gap: 6px; }
  .menu-toggle { padding-inline:var(--control-padding-inline,4px); font-size:var(--control-font-size,13px); }
  .app-header { padding-inline: 0; gap: 6px; border-bottom-color: var(--rule);}
  .directory-results .provider-card { padding-inline: 18px; }
}

/* 小さな掲載画像は切り取らず、画像全体を枠内に収める。 */
.provider-avatar.has-image { overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.provider-avatar img { display: block; width: 100%; height: 100%; object-fit: contain; }
.profile-avatar-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
#profile-avatar-preview { width: 256px; max-width: 100%; }
#profile-avatar-error { margin-bottom: 0; }
.profile-form button[type="submit"] { margin-top: 24px; }

/* 初回・規約改定時だけ、リンクと同意操作を短く案内する。 */
dialog.terms-consent-dialog { width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 24px; overflow-y: auto; }
.terms-consent-dialog[open] { display: flex; flex-direction: column; }
.terms-consent-dialog .dialog-heading { flex: 0 0 auto; margin-bottom: 12px; padding-bottom: 12px; }
#terms-consent-form { display: flex; flex-direction: column; min-height: 0; gap: 12px; }
.terms-intro { flex: 0 0 auto; font-size: 14px; line-height: 1.65; margin: 0; overflow-wrap: anywhere; }
.terms-intro a, .login-policy-links a { color: var(--green); }
.login-policy-links { margin-top: 16px; font-size: 13px; }
.terms-consent-controls { flex: 0 0 auto; }
.terms-consent-controls .form-error:empty { display: none; }
.terms-agreement { align-items: flex-start; font-size: 15px; line-height: 1.6; margin: 10px 0 12px; }
.terms-agreement input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; }
.terms-consent-controls .dialog-actions { margin-top: 0; gap:var(--action-gap,10px); }
.terms-consent-controls .btn { min-height:var(--control-height,44px); white-space: normal; }
@media (max-width: 540px) {
  dialog.terms-consent-dialog { padding: 16px; }
  .terms-consent-controls .dialog-actions { display: grid; grid-template-columns: 1fr 1.4fr; }
  .terms-consent-controls .btn { padding:var(--control-padding-block,10px) var(--control-padding-inline,10px); font-size:var(--control-font-size,14px); }
}

/* 履歴を追加で読む操作。入力欄は通信中も保持する。 */
.older-messages { width: 100%; padding:var(--control-padding-block,12px) var(--control-padding-inline,20px); border-bottom: 1px solid var(--line); }

/* メインとフッター内側の幅・左右余白を共通化する。 */
html{scrollbar-gutter:stable}
.workspace{--content-width:1440px;--content-padding:32px}
.workspace>main{max-width:var(--content-width);padding-inline:var(--content-padding)}
.app-header-inner{width:100%;height:100%;max-width:var(--content-width);margin-inline:auto;padding-inline:var(--content-padding);display:flex;align-items:center;justify-content:space-between;gap:inherit}
.site-footer:has(>.site-footer-inner){display:block;padding-inline:0}
.site-footer-inner{width:100%;max-width:var(--content-width);margin-inline:auto;padding-inline:var(--content-padding);display:flex;align-items:center;justify-content:space-between;gap:20px}
@media(max-width:760px){
  .workspace{--content-padding:20px}
  .site-footer-inner{flex-direction:column;align-items:center;gap:12px}
  .site-footer-inner > nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 8px;width:100%;max-width:280px}
  .site-footer-inner > nav > a{min-width:0;justify-content:center;text-align:center;white-space:normal;overflow-wrap:anywhere}
  .site-footer-inner > small{width:100%;text-align:center}
}
@media(max-width:599px){.workspace{--content-padding:16px}}

body { background: var(--surface); color: var(--ink); }

.menu-overlay { background: color-mix(in srgb, var(--ink) 20.00%, transparent); }

/* ページと条件欄のスクロールバーは同じテーマ色に揃える。 */
.filter-scroll { overflow-anchor: none; }
html, body, .filter-scroll { scrollbar-color: var(--scroll-thumb) var(--scroll-track); scrollbar-width: thin; }
html::-webkit-scrollbar, body::-webkit-scrollbar, .filter-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
html::-webkit-scrollbar-track, body::-webkit-scrollbar-track, .filter-scroll::-webkit-scrollbar-track { background: var(--scroll-track); }
html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb, .filter-scroll::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border: 2px solid var(--scroll-track); }
@media (prefers-reduced-motion: reduce) {
  button, a, input, select, textarea, summary, .btn, .filter-check, .accordion-mark::after { transition-duration: 0s; }
}

/* 検索の操作は同じ高さと余白でそろえる。 */
.directory-search .filter-modebar .mode-tabs button,
.directory-search .directory-query .btn,
.directory-search .filter-drawer-footer .btn,
.directory-search .directory-results-heading .sort-label select {
  box-sizing: border-box;
  height: var(--control-height,44px);
  min-height: var(--control-height,44px);
  padding-block: var(--control-padding-block,8px);
  font-size: var(--control-font-size,13px);
  line-height: var(--control-line-height,1.5);
}
.directory-search .directory-query .search-input {
  box-sizing: border-box;
  height: var(--control-height,44px);
  min-height: var(--control-height,44px);
  padding-block: var(--control-padding-block,8px);
  font-size: var(--control-font-size,13px);
}

/* アカウントの４ページは同じ見出し・余白から始める。 */
.workspace > main.account-main { max-width: var(--content-width); padding: 36px var(--content-padding) 32px; }
.account-page-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 0 0 32px; }
.account-page-heading h1 { font-size: 26px; line-height: 1.5; font-weight: 500; margin: 0; }
@media (max-width: 760px) {
  .workspace > main.account-main { padding-top: 24px; }
  .account-page-heading { margin-bottom: 24px; }
  .account-page-heading h1 { font-size: 24px; }
}

.directory-search .search-filter > summary { padding-inline: 12px; }
.directory-search .search-filter > .filter-content { padding-inline: 12px; }

/* PCの操作寸法。各部品は同じ値を参照し、SPでは従来の操作領域を使う。 */
@media (min-width: 761px) {
  :root {
    --control-height: 40px;
    --control-padding-block: 0px;
    --control-padding-inline: 16px;
    --control-font-size: 14px;
    --control-font-weight: 500;
    --control-line-height: 1.5;
    --control-font-family: var(--font-sans);
    --action-gap: 12px;
    --card-padding: 16px;
    --card-gap: 24px;
    --detail-gap: 32px;
    --auth-button-width: fit-content;
  }
  .btn, .text-btn, .icon-btn, .favorite-btn, .filter-clear, .filter-chip,
  .menu-toggle, .older-messages, .brand-genre-card, .brand,
  .mode-tabs > button, .app-nav > button {
    box-sizing: border-box;
    height: var(--control-height);
    min-height: var(--control-height);
    padding-block: var(--control-padding-block);
    font-size: var(--control-font-size);
    font-weight: var(--control-font-weight);
    line-height: var(--control-line-height);
  }
  .icon-btn, .favorite-btn, .menu-toggle {
    --control-padding-inline: 0px;
    width: var(--control-height);
    min-width: var(--control-height);
    padding: 0;
  }
  .brand-genre-card { border-radius: 0; }
  /* PCのトップ入口とメニュー行だけ、共通操作より少し余裕を持たせる。 */
  .brand-page .brand-genre-card, .app-header .site-menu .app-nav {
    --control-height: 48px;
    --control-padding-block: 8px;
  }
  .app-header .site-menu { --menu-padding-inline: 24px; }
  .app-header .site-menu .app-nav { --control-padding-inline: 20px; }
  .app-header .app-nav { align-items: center; }
}

/* 全幅で同じドロワーメニューを使う。 */
.app-header .menu-toggle{display:flex;align-items:center;justify-content:center;width:var(--control-height,44px);min-height:var(--control-height,44px);padding:0}
.app-header .menu-toggle .icon{width:26px;height:26px}
.app-header .menu-overlay{display:block;position:fixed;inset:0;width:100%;height:100dvh;z-index:79;cursor:default}
.app-header .site-menu{position:fixed;right:0;top:0;bottom:0;width:min(86%,340px);height:100dvh;background:var(--surface);z-index:80;margin:0;padding:0 var(--menu-padding-inline,20px) 24px;display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain}
.app-header .site-menu[hidden]{display:none}
.app-header .menu-heading{display:flex;align-items:center;justify-content:space-between;min-height:72px;border-bottom:1px solid var(--line);margin-bottom:16px}
.app-header .menu-heading h2{font-size:18px;font-weight:500}
.app-header .site-menu .app-nav{position:static;transform:none;width:auto;display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;border:0;background:none}
.app-header .site-menu .app-nav>button,.app-header .site-menu .app-nav>a{display:flex;align-items:center;justify-content:flex-start;min-height:var(--control-height,56px);height:var(--control-height,auto);padding:var(--control-padding-block,16px) var(--control-padding-inline,12px);border-bottom:1px solid var(--line);border-left:2px solid transparent;color:var(--ink);font-size:var(--control-font-size,15px);font-weight:var(--control-font-weight,500);line-height:1.5;text-align:left;text-decoration:none}
.app-header .site-menu .app-nav>a:hover{background:var(--green-light)}
