/*
 * マイページ（users/show）と設定（users/settings）（T-168）。
 * 寸法はデザインイメージ_マイページ1・2／設定保護者側・子ども側を実測して ×2.336。器は他のページと同じ 1100px（T-103）。
 * Tailwind の再ビルドを待たずに効くよう、素の CSS で持つ（T-111）。クラス名は up- で始める。
 *
 * 色はサイトの青（#469BFF）。マイページ2と設定のモックは原色の青（#0000FF）だが、
 * マイページ1・トップ・施設ページとそろえた（T-168。変えるなら --up-blue だけ）。
 */
:root {
    --up-blue: #469BFF;
    --up-line: #DCDDDD;
    --up-gray: #898989;
    --up-text: #111111;
}

.up-wrap { max-width: 1100px; margin: 0 auto; padding: 44px 16px 80px; box-sizing: content-box; color: var(--up-text); }
.up-box { background: #fff; border-radius: 16px; }
.up-pad { padding: 50px 72px; margin-top: 24px; }
.up-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.up-note { margin: 24px 8px 0; font-size: 14px; color: #595757; }

/* ── 見出し（プロフィール＋今月の記録＋タブ） ── */
.up-head { padding: 80px 72px 0; }
/* タブが無いとき（ほかの人が見たページ）は、下にも上と釣り合う余白を取る（T-287） */
.up-head--plain { padding-bottom: 72px; }
.up-head__top { display: flex; justify-content: space-between; gap: 40px; }
.up-prof__main { display: flex; align-items: center; gap: 39px; }
.up-prof__avatar { width: 112px; height: 112px; border-radius: 50%; flex-shrink: 0; object-fit: cover; background: #EEF5FF; }
.up-prof__name { margin: 0; font-size: 33px; font-weight: 700; line-height: 1.3; }
.up-prof__date { margin: 6px 0 0; font-size: 12px; color: var(--up-gray); }
/* T-287。モックの実測（11px）では小さすぎて読みにくいと指摘があり、ほかのページの本文に近い大きさにした */
.up-prof__rows { margin: 24px 0 0 8px; font-size: 14px; }
.up-prof__rows > div { display: flex; line-height: 1.7; padding: 5px 0; }
.up-prof__rows dt { width: 140px; flex-shrink: 0; color: var(--up-gray); font-weight: 700; }
.up-prof__rows dd { margin: 0; color: #231815; }
.up-prof__rows a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.up-side { display: flex; flex-direction: column; align-items: flex-end; width: 448px; flex-shrink: 0; }
.up-links { display: flex; align-items: center; gap: 20px; margin-right: 27px; }
/* T-307。モックの実測（11px）では小さすぎると指摘があり、プロフィールの行（up-prof__rows・T-287）と同じ 14px にした。スマホは 13px */
.up-settings { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--up-gray); text-decoration: none; }
.up-settings svg { width: 18px; height: 18px; }
.up-month {
    display: block; width: 100%; box-sizing: border-box; margin-top: 14px; padding: 13px 26px 14px;
    background: var(--up-blue); border-radius: 4px; color: #fff; text-decoration: none;
}
.up-month__title { display: block; font-size: 15px; font-weight: 700; }
.up-month__nums { display: flex; justify-content: space-between; margin-top: 2px; }
.up-month__nums > span { display: flex; align-items: baseline; font-size: 16px; font-weight: 700; }
.up-month__nums small { font-size: 11px; margin-right: 6px; align-self: flex-start; margin-top: 12px; }
.up-month__nums b { font-family: Helvetica, Arial, sans-serif; font-size: 41px; line-height: 1.1; margin-right: 6px; }

/* T-311。横にだけ動かす。overflow-x だけを auto にすると縦も auto になり、スマホで指を動かすとタブが上下にずれて切れていた */
.up-tabs { display: flex; gap: 0; margin: 54px -32px 0; padding: 0 32px; border-bottom: 1px solid var(--up-line); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; }
.up-tabs::-webkit-scrollbar { display: none; }
.up-tab {
    position: relative; display: flex; align-items: center; gap: 10px; padding: 0 24px 16px; white-space: nowrap;
    font-size: 15px; font-weight: 700; color: var(--up-gray); text-decoration: none;
}
.up-tab.is-active { color: var(--up-blue); }
.up-tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--up-blue); }   /* 縦にはみ出さない位置に（T-311） */
.up-tab__n {
    min-width: 21px; height: 21px; box-sizing: border-box; padding: 0 4px; line-height: 21px; text-align: center;
    background: var(--up-line); color: var(--up-blue); font-size: 11px; font-family: Helvetica, Arial, sans-serif;
}

/* ── フリ活タブ：左に絞り込み、右に一覧 ── */
.up-cols { display: flex; align-items: flex-start; gap: 24px; margin-top: 24px; }
.up-filter { width: 270px; flex-shrink: 0; box-sizing: border-box; padding: 20px 23px 23px; }
.up-filter h2 { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: var(--up-blue); }
.up-filter form { display: flex; flex-direction: column; gap: 15px; }
.up-field { position: relative; display: block; }
.up-field select, .up-field input {
    width: 100%; height: 46px; box-sizing: border-box; padding: 0 44px 0 18px; border: 1px solid var(--up-line); border-radius: 8px;
    background: #fff; font-size: 15px; font-weight: 700; color: var(--up-text); -webkit-appearance: none; appearance: none;
}
.up-field input[type="text"] { font-weight: 500; }
.up-field input::placeholder { color: var(--up-gray); font-weight: 500; }
.up-field select:invalid, .up-field select option[value=""] { color: var(--up-blue); }
.up-field--place select { color: var(--up-blue); }
.up-field--place::after {
    content: "+"; position: absolute; right: 14px; top: 12px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--up-blue); color: #fff; font: 700 20px/21px Helvetica, Arial, sans-serif; text-align: center; pointer-events: none;
}
.up-field--month input { color: var(--up-blue); font-weight: 700; }
.up-field--month input::placeholder { color: var(--up-blue); font-weight: 700; }
.up-field--month::after {
    content: ""; position: absolute; right: 15px; top: 14px; width: 18px; height: 16px; pointer-events: none;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16'%3E%3Cg fill='none' stroke='%23595757' stroke-width='1'%3E%3Crect x='.5' y='.5' width='17' height='15'/%3E%3Cpath d='M.5 4.5h17M.5 8.2h17M.5 11.9h17M4.75 4.5v11M9 4.5v11M13.25 4.5v11'/%3E%3C/g%3E%3C/svg%3E");
}
.up-field--month input::-webkit-calendar-picker-indicator { opacity: 0; }
.up-filter__submit {
    height: 46px; border: 0; border-radius: 8px; background: var(--up-blue); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
}
.up-list { flex: 1; min-width: 0; padding: 12px 46px 40px; }
.up-cols--single .up-list { max-width: 750px; margin: 0 auto; }

/* ── 積み上がったこと（2枚） ── */
.up-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 402px)); justify-content: center; gap: 36px; }
.up-panel { box-sizing: border-box; padding: 26px 33px 30px; border: 2px solid var(--up-blue); border-radius: 4px; color: var(--up-blue); }
.up-panel.is-filled { background: var(--up-blue); color: #fff; }
.up-panel__title { margin: 0; font-size: 15px; font-weight: 700; }
.up-panel__nums { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 30px; padding-bottom: 18px; }
.up-panel__nums > span { display: flex; flex-wrap: wrap; align-items: baseline; font-size: 16px; font-weight: 700; }
.up-panel__nums small { width: 100%; font-size: 12px; margin-bottom: 4px; }
.up-panel__nums b { font-family: Helvetica, Arial, sans-serif; font-size: 66px; line-height: 1; margin-right: 6px; }
.up-panel__nums--total { justify-content: flex-start; gap: 60px; margin-top: 8px; padding-bottom: 0; }
.up-panel__months b { font-size: 48px; }
/* T-365。4つ（通った・オンライン・家庭訪問・家庭学習）並べるときは、箱を少し広げて数字を小さくする */
.up-panels--four { grid-template-columns: repeat(2, minmax(0, 460px)); }
.up-panels--four .up-panel { padding-left: 30px; padding-right: 30px; }
.up-panels--four .up-panel__nums:not(.up-panel__nums--total) > span { font-size: 14px; }
.up-panels--four .up-panel__nums:not(.up-panel__nums--total) b { font-size: 52px; margin-right: 4px; }
.up-month--four { padding-left: 20px; padding-right: 20px; }
.up-month--four .up-month__nums small { font-size: 10px; margin-right: 4px; }
.up-month--four .up-month__nums b { font-size: 34px; margin-right: 4px; }
.up-month--four .up-month__nums > span { font-size: 14px; }
.up-panel__block { border-top: 1px solid rgba(70, 155, 255, .6); padding-top: 14px; }
.up-panel.is-filled .up-panel__block { border-top-color: rgba(255, 255, 255, .7); }
.up-panel__block + .up-panel__block { margin-top: 16px; }
.up-panel__label { margin: 0 0 8px; font-size: 12px; font-weight: 700; }
.up-panel__list { list-style: none; margin: 0; padding: 0 0 4px; }
.up-panel__list li { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; line-height: 23px; }

/* ── キニナル（近いところと同じカード） ── */

/* ── 登録した場所 ── */
/* T-311。写真は 4:3 のまま。align-items を指定しないと、右の文が長いときに写真が縦に引き伸ばされる */
.up-place { display: flex; align-items: flex-start; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--up-line); }
.up-place:last-child { border-bottom: 0; }
.up-place__photo { width: 120px; aspect-ratio: 4 / 3; flex-shrink: 0; border-radius: 4px; overflow: hidden; background: #EEE; }
.up-place__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-place__body { flex: 1; min-width: 0; }
.up-place__head { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; }
/* 通っている場所の印（T-275） */
.up-badge { display: inline-block; padding: 0 10px; border-radius: 10px; background: var(--up-blue); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; white-space: nowrap; text-decoration: none; }
.up-prof__rows .up-badge { margin-left: 8px; font-size: 11px; line-height: 20px; padding: 0 9px; vertical-align: 1px; }
.up-places__foot { margin: 20px 0 0; font-size: 12px; text-align: right; }
.up-places__foot a { color: var(--up-blue); }
.up-place__name { font-size: 15px; font-weight: 700; color: var(--up-blue); text-decoration: none; }
.up-place__term { margin: 4px 0 0; font-size: 12px; color: var(--up-gray); }
.up-place__actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; font-size: 12px; color: var(--up-gray); }
.up-places__note { margin: 16px 0 0; font-size: 12px; line-height: 1.8; color: #595757; }
/* フリ活が0件のときの入口（1-72） */
.up-list .pp-empty:has(+ .up-empty-links) { padding-bottom: 20px; }
.up-empty-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 0 16px 50px; }
.up-empty-note { margin: -36px 0 0; padding: 0 16px 50px; text-align: center; font-size: 12px; color: var(--up-gray); }
.up-btn-line {
    display: inline-block; padding: 0 18px; line-height: 34px; border: 1px solid var(--up-blue); border-radius: 4px;
    color: var(--up-blue); font-size: 13px; font-weight: 700; text-decoration: none; background: #fff;
}

@media (max-width: 1023px) {
    .up-wrap { padding: 20px 16px 48px; }
    .up-head { padding: 28px 20px 0; }
    .up-head--plain { padding-bottom: 32px; }
    .up-head__top { flex-direction: column; gap: 20px; }
    .up-prof__main { gap: 20px; }
    .up-prof__avatar { width: 80px; height: 80px; }
    .up-prof__name { font-size: 24px; }
    .up-prof__rows { margin-left: 0; }
    .up-prof__rows { font-size: 13px; }
    .up-prof__rows dt { width: 116px; }
    .up-side { width: 100%; }
    .up-head { position: relative; }
    .up-links { position: absolute; top: 24px; right: 20px; margin: 0; gap: 16px; }
    .up-settings { font-size: 13px; }
    .up-month { margin-top: 0; padding: 12px 18px; }
    .up-month__nums b { font-size: 32px; }
    .up-tabs { margin: 24px -20px 0; padding: 0 8px; }
    .up-tab { padding: 0 12px 12px; font-size: 14px; gap: 6px; }
    .up-pad { padding: 24px 16px; margin-top: 16px; }
    .up-cols { flex-direction: column; gap: 16px; margin-top: 16px; }
    .up-filter { width: 100%; }
    .up-list { width: 100%; box-sizing: border-box; padding: 4px 16px 24px; }
    .up-panels { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .up-panel { padding: 20px 20px 24px; }
    .up-panel__nums b { font-size: 48px; }
    .up-panels--four { grid-template-columns: minmax(0, 1fr); }
    .up-panels--four .up-panel { padding-left: 18px; padding-right: 18px; }
    .up-panels--four .up-panel__nums:not(.up-panel__nums--total) b { font-size: 38px; }
    .up-panels--four .up-panel__nums:not(.up-panel__nums--total) small { font-size: 11px; }
    .up-month--four { padding-left: 14px; padding-right: 14px; }
    .up-month--four .up-month__nums b { font-size: 26px; margin-right: 2px; }
    .up-month--four .up-month__nums > span { font-size: 12px; }
    .up-month--four .up-month__nums small { font-size: 9px; margin-right: 3px; margin-top: 8px; }
    .up-place__photo { width: 88px; }
    .up-place { gap: 16px; padding: 16px 0; }
    .up-place__actions { margin-top: 10px; flex-wrap: wrap; gap: 8px 14px; }
}

/* ── 設定（users/settings・T-169）──
 * デザインイメージ_設定保護者側・子ども側を実測。左にアバター、右に3つの節（プロフィール／ユーザー設定／◯◯設定）。
 */
.us-box { display: flex; gap: 32px; padding: 80px 78px 90px 72px; }
.us-avatar { width: 113px; height: 113px; border-radius: 50%; flex-shrink: 0; object-fit: cover; background: #EEF5FF; }
.us-avatar--sm { width: 113px; height: 113px; }
.us-main { flex: 1; min-width: 0; max-width: 703px; }
.us-tabs { display: flex; border-bottom: 1px solid var(--up-line); }
.us-tabs a { position: relative; padding: 0 8px 12px; margin-right: 38px; font-size: 13px; font-weight: 700; color: var(--up-gray); text-decoration: none; }
.us-tabs a.is-active { color: var(--up-blue); }
.us-tabs a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--up-blue); }
.us-status { margin: 20px 0 0; font-size: 13px; color: var(--up-blue); font-weight: 700; }
.us-error { margin: 6px 0 0; font-size: 12px; color: #E60012; }
.us-section { padding-top: 44px; scroll-margin-top: 20px; }
.us-section + .us-section { padding-top: 70px; }
.us-h2 { margin: 0 0 24px; font-size: 20px; font-weight: 700; }

.us-input {
    width: 275px; height: 46px; box-sizing: border-box; padding: 0 16px; border: 1px solid var(--up-line); border-radius: 8px;
    background: #fff; font-size: 14px; color: var(--up-text);
}
.us-input:focus { outline: 2px solid rgba(70, 155, 255, .4); border-color: var(--up-blue); }
.us-input--wide { width: 100%; font-weight: 700; }
.us-input::placeholder { color: #B5B5B6; font-weight: 400; }
.us-btn {
    height: 40px; padding: 0 24px; border: 0; border-radius: 4px; background: var(--up-blue); color: #fff;
    font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
}

.us-row { display: flex; align-items: center; min-height: 80px; box-sizing: border-box; padding: 17px 0; border-bottom: 1px solid var(--up-line); }
.us-row--top { align-items: flex-start; }
.us-row--top .us-row__label { padding-top: 14px; }
.us-row__label { width: 215px; flex-shrink: 0; font-size: 13px; font-weight: 700; }
.us-row__body { flex: 1; min-width: 0; }
.us-row__body--inline { display: flex; align-items: center; gap: 16px; }
.us-email { font-size: 15px; }

.us-radios { display: flex; align-items: center; gap: 60px; margin: 0; }
.us-radio { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; cursor: pointer; }
.us-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.us-radio span { position: relative; width: 26px; height: 26px; box-sizing: border-box; border: 1px solid var(--up-line); border-radius: 50%; background: #fff; }
.us-radio input:checked + span { border-color: var(--up-blue); background: var(--up-blue); }
.us-radio input:checked + span::after {
    content: ""; position: absolute; left: 8px; top: 4px; width: 7px; height: 12px;
    border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.us-radio input:focus-visible + span { outline: 2px solid rgba(70, 155, 255, .5); outline-offset: 2px; }
/* T-341。立場の行。つながりと食い違う立場は選べない */
.us-radios--role { gap: 40px; flex-wrap: wrap; row-gap: 12px; }
.us-radio.is-disabled { opacity: .4; cursor: not-allowed; }

/* 設定 → マイページへ戻る（T-278） */
.us-back { margin: 0 0 16px; }
.us-back .up-btn-line span { margin-right: 4px; }

/* 登録した場所／お気に入りフリースクール（livewire/profile-facilities・T-275） */
.us-pf__lead { margin: 12px 0 14px; font-size: 12px; line-height: 1.8; color: var(--up-gray); }
.us-pf__list { list-style: none; margin: 0 0 14px; padding: 0; }
.us-pf__list > li { padding: 14px 0; font-size: 14px; }
.us-pf__list > li + li { border-top: 1px dashed var(--up-line); }
.us-pf__item { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.us-pf__name { flex: 1 1 200px; min-width: 0; color: var(--up-text); text-decoration: underline; text-underline-offset: 3px; }
.us-pf__ctrl { display: flex; align-items: center; gap: 10px 20px; flex-wrap: wrap; }
.us-pf__remove { border: 0; padding: 0; background: none; font-size: 12px; color: var(--up-gray); cursor: pointer; text-decoration: underline; }
.us-pf__remove--off { cursor: default; text-decoration: none; }
.us-pf__notice { margin: 0 0 12px; font-size: 12px; color: #C7000B; }

/* 切り替え（通っている・プロフィールに出す） */
.us-switch { display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 0; background: none; font: inherit; font-size: 12px; font-weight: 700; color: var(--up-gray); cursor: pointer; }
.us-switch__knob { position: relative; width: 40px; height: 22px; flex-shrink: 0; border-radius: 11px; background: #C9CACA; transition: background .15s; }
.us-switch__knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.us-switch.is-on { color: var(--up-text); }
.us-switch.is-on .us-switch__knob { background: var(--up-blue); }
.us-switch.is-on .us-switch__knob::after { transform: translateX(18px); }
.us-switch:focus-visible { outline: 2px solid rgba(70, 155, 255, .5); outline-offset: 3px; border-radius: 4px; }
.us-switch__text { min-width: 5em; text-align: left; }

/* 離れた理由（答えなくてもよい） */
.us-pf__reason { margin-top: 14px; padding: 16px 18px; border: 1px solid var(--up-line); border-radius: 8px; background: #F8FAFD; }
.us-pf__reason-q { margin: 0 0 10px; font-size: 13px; font-weight: 700; }
.us-pf__reason-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.us-pf__reason-opt { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.us-pf__reason-note { margin: 12px 0 0; font-size: 11px; line-height: 1.8; color: var(--up-gray); }
.us-pf__reason-btns { display: flex; align-items: center; gap: 20px; margin-top: 14px; }

.us-pf__search { display: flex; align-items: center; gap: 16px; }
.us-plus { width: 22px; height: 22px; box-sizing: border-box; border: 1px solid #C9CACA; border-radius: 50%; position: relative; flex-shrink: 0; }
.us-plus::before, .us-plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: #C9CACA; transform: translate(-50%, -50%); }
.us-plus::before { width: 12px; height: 1px; }
.us-plus::after { width: 1px; height: 12px; }
.us-pf__results { list-style: none; margin: 8px 0 0; padding: 4px 0; max-width: 460px; border: 1px solid var(--up-line); border-radius: 8px; background: #fff; }
.us-pf__results button { display: block; width: 100%; padding: 9px 16px; border: 0; background: none; text-align: left; cursor: pointer; }
.us-pf__results button:hover { background: #F4F8FF; }
.us-pf__results b { display: block; font-size: 14px; }
.us-pf__results small { font-size: 11px; color: var(--up-gray); }
.us-pf__none { margin: 8px 0 0; font-size: 12px; color: var(--up-gray); }

.us-linked { display: flex; align-items: center; gap: 46px; padding: 12px 0 22px; border-bottom: 1px solid var(--up-line); }
.us-linked__name { font-size: 15px; font-weight: 700; color: var(--up-text); text-decoration: none; }
.us-linked__rows { margin: 6px 0 0; }
.us-linked__rows dt { width: 92px; }
.us-empty { margin: 0; font-size: 13px; color: var(--up-gray); }

@media (max-width: 1023px) {
    .us-box { flex-direction: column; gap: 20px; padding: 28px 20px 40px; }
    .us-avatar { width: 80px; height: 80px; }
    .us-tabs { overflow-x: auto; }
    .us-tabs a { margin-right: 16px; white-space: nowrap; }
    .us-section { padding-top: 32px; }
    .us-section + .us-section { padding-top: 44px; }
    .us-row { flex-direction: column; align-items: stretch; gap: 10px; min-height: 0; }
    .us-row--top .us-row__label { padding-top: 0; }
    .us-row__label { width: auto; }
    .us-input { width: 100%; }
    .us-row__body--inline { flex-direction: column; align-items: stretch; }
    .us-radios { gap: 32px; }
    .us-radios--role { gap: 24px; }
    .us-linked { gap: 20px; }
    .us-avatar--sm { width: 72px; height: 72px; }
}

/* ── お知らせ（notifications/index・T-172） ── */
.nt-box { max-width: 750px; margin: 0 auto; padding: 60px 72px; }
.nt-item {
    position: relative; display: block; padding: 18px 0 18px 20px; border-bottom: 1px solid var(--up-line);
    color: var(--up-text); text-decoration: none;
}
.nt-item::before { content: ""; position: absolute; left: 0; top: 26px; width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.nt-item.is-new::before { background: var(--up-blue); }
.nt-item:hover { background: #F7FAFF; }
.nt-item__date { display: block; font-size: 11px; color: var(--up-gray); }
.nt-item__title { display: block; margin-top: 4px; font-size: 15px; font-weight: 700; line-height: 1.6; }
.nt-item__body { display: block; margin-top: 6px; font-size: 13px; line-height: 1.8; color: #595757; }
.nt-item__action { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--up-blue); }
.nt-foot { margin: 28px 0 0; font-size: 12px; color: var(--up-gray); }
.nt-foot a { color: var(--up-blue); }

@media (max-width: 1023px) {
    .nt-box { padding: 28px 20px; }
}

/* ── お問い合わせ（pages/contact・T-180）。部品は設定画面（us-）と同じ ── */
.ct-box { max-width: 850px; margin: 0 auto; padding: 60px 72px 70px; box-sizing: border-box; }
.ct-h1 { font-size: 24px; }
.ct-text { margin: 0 0 14px; font-size: 16px; line-height: 1.65; }
.ct-text a, .ct-consult a, .ct-note a, .ct-target a { color: var(--up-blue); }
.ct-consult { margin: 0 0 20px; padding: 18px 20px; border-radius: 8px; background: #F4F8FF; font-size: 15px; line-height: 1.7; }
.ct-consult p { margin: 0; }
.ct-consult p + p { margin-top: 6px; }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; padding-top: 12px; }
.ct-cats .us-radio { font-size: 15px; font-weight: 500; }
.ct-req { display: inline-block; margin-left: 8px; padding: 0 6px; line-height: 16px; vertical-align: 2px; background: #FB7AA5; color: #fff; font-size: 10px; font-weight: 700; border-radius: 2px; }
.ct-box .us-row__label { font-size: 15px; }
.ct-opt { margin-left: 8px; font-size: 11px; color: var(--up-gray); font-weight: 500; }
.ct-note { margin: 8px 0 0; font-size: 13px; color: #595757; line-height: 1.6; }
.ct-wide { width: 100%; }
.ct-target { display: flex; gap: 16px; font-size: 15px; }
.ct-textarea { display: block; width: 100%; box-sizing: border-box; padding: 12px 16px; border: 1px solid var(--up-line); border-radius: 8px; font-size: 16px; line-height: 1.65; font-family: inherit; resize: vertical; }
.ct-submit { margin-top: 36px; text-align: center; }
.ct-submit button { width: 246px; height: 46px; border: 0; border-radius: 4px; background: var(--up-blue); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }

@media (max-width: 1023px) {
    .ct-box { padding: 28px 20px 36px; }
    .ct-cats { grid-template-columns: minmax(0, 1fr); }
    .ct-submit button { width: 100%; }
}

/* ── 運営の画面（operate・T-181）。道具なのでデザインは起こさない ── */
.op-wrap { max-width: 1000px; }
.op-h1 { margin: 0 0 16px; font-size: 24px; font-weight: 700; }
.op-status { margin: 0 0 16px; padding: 12px 16px; border-radius: 8px; background: #F4F8FF; color: var(--up-blue); font-weight: 700; }
.op-box { padding: 28px 32px; margin-bottom: 24px; }
.op-h2 { margin: 0 0 12px; font-size: 18px; font-weight: 700; }
.op-h2 small { font-size: 13px; color: var(--up-gray); font-weight: 500; margin-left: 8px; }
.op-item { padding: 16px 0; border-top: 1px solid var(--up-line); }
.op-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 15px; }
.op-meta { margin: 0 0 6px; font-size: 13px; color: #595757; }
.op-meta a { color: var(--up-blue); }
.op-body { margin: 8px 0; font-size: 15px; line-height: 1.65; white-space: pre-line; }
.op-quote { margin: 6px 0 10px; padding: 10px 14px; border-left: 3px solid var(--up-line); background: #FAFAFA; font-size: 14px; line-height: 1.65; white-space: pre-line; }
.op-cat { display: inline-block; padding: 0 8px; line-height: 20px; border-radius: 3px; background: #EEE; font-size: 12px; font-weight: 700; }
.op-cat.is-report { background: #FB7AA5; color: #fff; }
.op-target { margin: 10px 0; padding: 12px 16px; border: 1px solid var(--up-line); border-radius: 8px; }
.op-actions, .op-tool, .op-hide { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.op-actions form, .op-tool form, .op-done { margin: 0; }
.op-done { margin-top: 10px; }
.op-hide select { height: 34px; padding: 0 8px; border: 1px solid var(--up-line); border-radius: 4px; font-size: 13px; background: #fff; }
.op-btn { height: 34px; padding: 0 14px; border: 0; border-radius: 4px; background: #595757; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.op-btn--line { background: #fff; color: #595757; border: 1px solid var(--up-line); }
.op-btn--danger { background: #E60012; }
.op-empty { margin: 0; font-size: 14px; color: var(--up-gray); }

/* ── 公開後のお知らせの段取り（operate/outreach・T-282）。道具なのでデザインは起こさない ── */
.or-today { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 16px; }
.or-today__num { display: flex; align-items: baseline; gap: 10px; padding: 12px 20px; border-radius: 8px; background: #F4F8FF; color: var(--up-blue); font-weight: 700; }
.or-today__num span { font-size: 13px; }
.or-today__num b { font-size: 34px; line-height: 1; }
.or-today__num small { font-size: 13px; }
.or-today__num.is-warn { background: #FFF6E5; color: #B26B00; }
.or-today__num.is-stop { background: #FDECEE; color: #C7000B; }
.or-today__note { margin: 0; flex: 1 1 260px; font-size: 13px; line-height: 1.7; color: #595757; }
.or-steps { margin: 0 0 12px; padding-left: 1.6em; list-style: decimal; font-size: 14px; line-height: 1.9; }
.or-rule { margin: 0 0 12px; font-size: 13px; line-height: 1.8; color: #595757; }
.or-subject { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; font-size: 13px; }
.or-subject span { font-weight: 700; }
.or-tabs { margin-bottom: 14px; }
.or-tab small { margin-left: 4px; font-weight: 500; opacity: .75; }
.or-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.or-filter select, .or-filter input[type=text], .or-form select, .or-form input[type=text] {
    height: 34px; padding: 0 10px; border: 1px solid var(--up-line); border-radius: 4px; background: #fff; font-size: 13px; box-sizing: border-box;
}
.or-filter input[type=text] { width: 220px; }
.or-filter__n { font-size: 13px; color: var(--up-gray); }
.or-item:first-of-type { border-top: 0; padding-top: 0; }
.or-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.or-name { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.or-name a { color: var(--up-text); text-decoration: underline; text-underline-offset: 3px; }
.or-name .op-cat { margin-left: 8px; font-weight: 500; }
.or-org { color: #B26B00; font-weight: 700; }
.or-open { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; background: var(--up-blue); }
.or-log { margin: 10px 0 0; padding: 8px 12px; border-radius: 4px; background: #F2F2F2; font-size: 13px; }
.or-log.is-sent { background: #EAF6EC; color: #1F6B2E; }
.or-log.is-declined { background: #FDECEE; color: #C7000B; }
.or-copy { margin-top: 12px; }
.or-preview { flex-basis: 100%; font-size: 13px; }
.or-preview summary { cursor: pointer; color: var(--up-blue); }
.or-preview pre { margin: 8px 0 0; padding: 12px 14px; border: 1px solid var(--up-line); border-radius: 4px; background: #FAFAFA; white-space: pre-wrap; font: inherit; line-height: 1.7; }
.or-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; }
.or-form input[type=text] { flex: 1 1 220px; }
.or-sub { margin-top: 8px; }
.or-sub form { margin: 0; }
.or-link { border: 0; padding: 0; background: none; font-size: 12px; color: var(--up-gray); text-decoration: underline; cursor: pointer; }
@media (max-width: 1023px) {
    .or-head { flex-direction: column; }
    .or-filter input[type=text] { width: 100%; }
}

/* ── メールアドレスの変更・アカウントの削除（T-192）──
 * モックの小さい灰色の字（「メールアドレスの変更はこちら」「削除確認用メールを送る」）。
 * 押せると分かるよう下線を付ける（T-90 と同じ理由）。読める大きさの下限 12px（T-75・T-179）。
 */
.us-sublink { display: block; margin-top: 6px; font-size: 12px; color: var(--up-gray); text-decoration: underline; text-underline-offset: 3px; }
.us-sublink--row { margin-top: 0; display: inline-block; }
.us-sublink:hover { color: var(--up-blue); }
.us-email--none { color: var(--up-gray); font-weight: 400; }
.us-row--open { margin: 0 -24px; padding: 24px; border: 1px solid var(--up-line); border-radius: 0; }
.us-help { margin: 8px 0 0; font-size: 12px; line-height: 1.7; color: var(--up-gray); }

/* 削除の画面（users/withdraw・withdraw-confirm） */
.wd-box { max-width: 703px; margin: 0 auto; padding: 60px 40px 80px; box-sizing: content-box; }
.wd-h1 { margin: 0 0 24px; font-size: 26px; font-weight: 700; }
.wd-warn { margin: 0 0 32px; padding: 16px 20px; border-left: 4px solid var(--up-blue); background: #EEF6FF; font-size: 14px; line-height: 1.8; }
.wd-h2 { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.wd-list { margin: 0 0 32px; border: 1px solid var(--up-line); border-radius: 8px; }
.wd-item { display: flex; gap: 20px; padding: 16px 20px; }
.wd-item + .wd-item { border-top: 1px solid var(--up-line); }
.wd-item__head { width: 176px; flex-shrink: 0; }
.wd-item__label { font-size: 14px; font-weight: 700; }
.wd-item__fate { margin-top: 4px; font-size: 12px; color: var(--up-gray); }
.wd-item__fate.is-keep { color: var(--up-blue); font-weight: 700; }
.wd-item__note { margin: 0; font-size: 13px; line-height: 1.7; color: #555; }
.wd-note { margin: 0 0 32px; padding: 16px 20px; border: 1px solid var(--up-line); border-radius: 8px; font-size: 13px; line-height: 1.8; }
.wd-note a, .wd-back a { color: var(--up-blue); text-decoration: underline; }
.wd-actions { text-align: center; }
.wd-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 260px; height: 54px; padding: 0 32px; border: 0; border-radius: 8px; background: var(--up-blue); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; }
.wd-btn--danger { background: #E60012; }
.wd-small { margin: 14px 0 0; font-size: 12px; color: var(--up-gray); line-height: 1.7; }
.wd-back { margin: 28px 0 0; text-align: center; font-size: 14px; }
.wd-status { margin: 0 0 24px; padding: 12px 16px; border-radius: 8px; background: #EEF6FF; font-size: 14px; line-height: 1.7; font-weight: 700; }
@media (max-width: 1023px) {
    .us-row--open { margin: 0; padding: 16px; }
    .wd-box { padding: 28px 20px 40px; }
    .wd-h1 { font-size: 20px; }
    .wd-item { flex-direction: column; gap: 6px; }
    .wd-item__head { width: auto; }
    .wd-btn { width: 100%; min-width: 0; }
}

/* 招待（T-194）。モックの「⊕ 子どもを追加する」（中央・灰色）と、開いたときの欄 */
.us-add { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px 0; font-size: 13px; font-weight: 700; color: var(--up-gray); text-decoration: none; }
.us-add:hover { color: var(--up-blue); }
.us-pending { list-style: none; margin: 12px 0 0; padding: 0; font-size: 12px; color: var(--up-gray); line-height: 1.8; }

/* ── 文字の段階を施設ページ・サウナイキタイにそろえる（2026-09-28・T-195）──
 * カトウさん「全体的に文字サイズが小さい。施設ページやサウナイキタイの文字サイズが基準」。
 * 本文・項目名・入力 16px（サウナイキタイの本文 16px・T-179／登録フォームの項目名 16px・T-152）、補足 14px、いちばん小さくて 13px。
 * スマホは一段下げる（14／13／12・T-87 と同じ考え方）。入力欄はスマホでも 16px（iPhone が拡大しないように・T-183）。
 */
.us-tabs a { font-size: 15px; }
.us-status { font-size: 16px; }
.us-error { font-size: 14px; }
.us-h2 { font-size: 22px; }
.us-input, .us-btn { font-size: 16px; }
.us-row__label { font-size: 16px; }
.us-email { font-size: 16px; }
.us-radio { font-size: 16px; }
.us-pf__list li { font-size: 16px; }
.us-pf__remove { font-size: 14px; }
.us-pf__results b { font-size: 16px; }
.us-pf__results small, .us-pf__none, .us-pf__cands, .us-pf__cands button { font-size: 13px; }
.us-linked__name { font-size: 17px; }
.us-linked__rows { font-size: 14px; }
.us-empty { font-size: 15px; }
.us-sublink { font-size: 14px; }
.us-help { font-size: 14px; }
.us-add { font-size: 15px; }
.us-pending { font-size: 14px; }
.nt-item__date { font-size: 13px; }
.nt-item__title { font-size: 17px; }
.nt-item__body, .nt-item__action { font-size: 15px; }
.nt-foot { font-size: 14px; }
.wd-warn, .wd-item__label, .wd-h2 { font-size: 16px; }
.wd-item__fate { font-size: 13px; }
.wd-item__note, .wd-note, .wd-small, .wd-back { font-size: 15px; }
.wd-status { font-size: 16px; }
@media (max-width: 1023px) {
    .us-tabs a, .us-status, .us-row__label, .us-email, .us-radio, .us-pf__list li, .us-pf__results b,
    .wd-warn, .wd-item__label, .wd-h2, .wd-status { font-size: 15px; }
    .us-h2 { font-size: 20px; }
    .us-sublink, .us-help, .us-pending, .us-linked__rows, .us-empty, .us-add, .us-pf__remove,
    .nt-item__body, .nt-item__action, .nt-foot,
    .wd-item__note, .wd-note, .wd-small, .wd-back { font-size: 14px; }
    .us-input { font-size: 16px; }
    .us-error, .us-pf__results small, .us-pf__none, .us-pf__cands, .us-pf__cands button, .nt-item__date, .wd-item__fate { font-size: 12px; }
}

/* つながりの解除（T-197） */
.us-release { margin: 10px 0 0; }
.us-release button { padding: 0; border: 0; background: none; cursor: pointer; font-family: inherit; }

/* ── アバター（T-199）──
 * サウナイキタイの設定の実測：アバターの下に黒い角丸の「アイコン変更」（12px 太字・白）。
 * 選ぶ欄：背景の色12色の丸、アイコン33種を背景色の丸に載せて並べる。選んだものは青の輪。
 */
.us-avatar-col { display: flex; flex-direction: column; align-items: center; gap: 14px; flex-shrink: 0; }
.us-avatar-btn { display: inline-block; padding: 6px 14px; border-radius: 6px; background: #333; color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.us-avatar-btn:hover { background: #000; }
.us-avatar-form { margin: 32px 0 0; padding: 28px 28px 24px; border: 1px solid var(--up-line); border-radius: 8px; }
.us-avatar-form .us-h2 { margin-bottom: 8px; }
.us-avatar-form__label { margin: 24px 0 10px; font-size: 15px; font-weight: 700; }
.us-colors { display: flex; flex-wrap: wrap; gap: 12px; }
.us-color, .us-icon { position: relative; cursor: pointer; }
.us-color input, .us-icon input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.us-color span { display: block; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.us-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 12px; }
.us-icon span { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.us-icon img { width: 84%; height: 84%; object-fit: contain; }
.us-color input:checked + span, .us-icon input:checked + span { outline: 3px solid var(--up-blue); outline-offset: 3px; }
.us-color input:focus-visible + span, .us-icon input:focus-visible + span { outline: 3px solid rgba(70,155,255,.5); outline-offset: 3px; }
.us-avatar-form__actions { display: flex; align-items: center; gap: 24px; margin: 28px 0 0; }
.us-avatar-reset { margin: 16px 0 0; padding: 0; border: 0; background: none; color: var(--up-gray); font-size: 14px; text-decoration: underline; cursor: pointer; font-family: inherit; }
@media (max-width: 1023px) {
    .us-avatar-col { flex-direction: row; justify-content: flex-start; }
    .us-avatar-form { padding: 20px 16px; }
    .us-icons { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 10px; }
    .us-color span { width: 32px; height: 32px; }
}

/* T-213。積み上がったことの下に、これまでの記録への入口 */
.rc-entry { margin: 20px 0 0; text-align: right; font-size: 15px; font-weight: 700; }
.rc-entry a { color: var(--up-blue); }

/* ── 消したフリ活（A-44・A-45・T-219）。フリ活の一覧の下、本人にだけ ── */
.up-status { max-width: none; margin: 24px 0 0; font-size: 14px; font-weight: 700; }
.up-trash { margin-top: 40px; padding-top: 24px; border-top: 1px solid #EEE; }
.up-trash__h { margin: 0; font-size: 18px; font-weight: 700; color: #333; }
.up-trash__note { margin: 8px 0 0; font-size: 14px; line-height: 1.7; color: #595757; }
.up-trash__list { margin: 16px 0 0; padding: 0; list-style: none; }
.up-trash__row { display: flex; align-items: center; gap: 20px; padding: 16px 0; border-bottom: 1px solid #EEE; }
.up-trash__main { flex: 1; min-width: 0; }
.up-trash__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: 14px; color: #333; }
.up-trash__meta span:first-child { font-weight: 700; }
.up-trash__body { margin: 6px 0 0; font-size: 16px; line-height: 1.65; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-trash__until { margin: 6px 0 0; font-size: 13px; color: #595757; }
.up-trash__btn { flex: none; cursor: pointer; font-size: 14px; }

@media (max-width: 1023px) {
    .up-status { margin-top: 16px; font-size: 13px; }
    .up-trash { margin-top: 32px; }
    .up-trash__h { font-size: 16px; }
    .up-trash__note { font-size: 13px; }
    .up-trash__row { gap: 12px; }
    .up-trash__meta { font-size: 13px; }
    .up-trash__body { font-size: 15px; }
    .up-trash__until { font-size: 12px; }
}

/* ── お問い合わせの器を地域ページ・文書のページと同じ幅にする（2026-09-30・T-229）──
 * カトウさん「白ボックスの幅が地域ページなどの幅と合っていない。文字のサイズも合わせて」。
 * 白い箱は 1100（地域ページ・文書のページ dp-box と同じ）、中身は 850 で中央。題は文書のページと同じ 34px（スマホ 24px）。
 * 文字は T-195 の段階：本文・項目名・選択肢 16px、補足 14px（スマホ 15／14）。入力欄はスマホでも 16px（T-183）。
 */
.ct-wrap { padding-top: 0; }
.ct-box { max-width: none; padding: 80px; }
.ct-inner { max-width: 850px; margin: 0 auto; }
.ct-h1 { margin: 0 0 30px; font-size: 34px; line-height: 1.5; }
.ct-text, .ct-consult, .ct-target, .ct-box .us-row__label, .ct-cats .us-radio { font-size: 16px; }
.ct-note { font-size: 14px; }
.ct-opt { font-size: 13px; }
@media (min-width: 1024px) {
    .ct-wrap { padding-top: 32px; }
}
@media (max-width: 1023px) {
    .ct-wrap { padding: 0 0 40px; }
    .ct-box { border-radius: 0; padding: 20px 20px 40px; }
    .ct-h1 { margin: 0 0 16px; font-size: 24px; line-height: 1.25; }
    .ct-text, .ct-consult, .ct-target, .ct-box .us-row__label, .ct-cats .us-radio { font-size: 15px; }
    .ct-note { font-size: 14px; }
    .ct-opt { font-size: 12px; }
}

@media (max-width: 1023px) {
    .us-pf__item { flex-direction: column; align-items: stretch; }
    .us-pf__name { flex: none; }
    .us-pf__reason-list { grid-template-columns: 1fr; }
    .up-places__foot { text-align: left; }
}
