:root {
  --bg: #fff7fb;
  --card: #ffffff;
  --card-border: #f3d9e6;
  --text: #4b3b44;
  --muted: #6f5a64;   /* 2026-10-18: 副文字の 1 つの値。白 6.32 / ページ背景 6.00 / 薄ピンク 4.78。以前は #8a7480(4.26) ほか約 20 種の薄い灰色 */
  --red: #b8453e;   /* 2026-10-18: 注意・支出・日曜/祝日の赤。以前の #c9564f は白地 4.26(基準 4.5 未満)。白 5.30 */
  --glyph: #8a7480;   /* 2026-10-18: 矢印・チェブロン・×(文字でない図形)の色。3:1 以上: 白 4.29 / ページ 4.08 / 薄ピンク 3.25 */
  --primary: #de7fa6;
  --primary-dark: #c9658f;
  --primary-soft: #fbe3ee;
  --danger: #d85b7b;
  --shadow: 0 10px 30px rgba(222, 127, 166, 0.12);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;

  /* 動きの語彙(2026-10-14)。**ここ以外に時間とカーブを書かない。**
     画面ごとに 0.15s / 0.18s / 0.2s / 0.25s / 0.28s / 0.35s と割れて
     いたので 1 組へ寄せる。カーブは共通シートが既に使っている
     ものをそのまま家の標準にした。 */
  --hn-dur-press: 120ms;      /* 押した返し。長いと遅さに見える */
  --hn-dur-sheet-in: 280ms;   /* シートが出る。距離があるので長め */
  --hn-dur-sheet-out: 200ms;  /* 帰るのは出るより速く */
  --hn-dur-fade: 200ms;       /* 後ろの暗がり */
  --hn-ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
  --hn-ease-press: cubic-bezier(0.16, 1, 0.3, 1);
  --hn-press-scale: 0.98;
  --hn-press-wash: rgba(222, 127, 166, 0.07);  /* primary の薄い染め */
}

* {
  box-sizing: border-box;
}

/* ページ間の横ズレ防止(2026-09-10、ユーザー指摘:「フッターを切り替えると
   ページ全体の位置が微妙にズレる」): .app-shell / .app-header / .footer-nav
   はいずれも max-width:440px + margin:0 auto の中央寄せ。縦スクロールバーの
   有無でビューポート幅が約15px変わると中央寄せの基準がずれ、内容量が画面高を
   超えるページ(カレンダー・検索結果など)と収まるページを行き来するたびに
   3層すべてが約7.5px横移動していた。スクロールバー領域を常に予約して固定する。
   モバイルはオーバーレイ表示のため元々影響なし - デスクトップでのみ効く。 */
html {
  scrollbar-gutter: stable;
}

html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #fff8fc 0%, #fff3f9 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
}

body {
  min-height: 100vh;
}

.app-shell {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 82px 16px 96px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 20px;
}

.card + .card {
  margin-top: 14px;
}

.section-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 800;
}

.field {
  margin-bottom: 14px;
}

.label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.input,
.textarea,
.select {
  width: 100%;
  appearance: none;
  border: 1px solid #ebd3df;
  background: #fff;
  border-radius: 14px;
  padding: 14px 14px;
  font-size: 16px;
  color: var(--text);
  outline: none;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(222, 127, 166, 0.12);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.button {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 15px 16px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.18s ease;
}

.button-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(201, 101, 143, 0.22);
}

.button-soft {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.error-box {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff1f5;
  color: var(--danger);
  border: 1px solid #f4c8d6;
  font-size: 14px;
  font-weight: 700;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 24px 20px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.75), transparent 28%),
    linear-gradient(135deg, #f6bad2 0%, #de7fa6 100%);
  color: #fff;
  border: none;
}

.hero-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
}

.hero-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.metric-label {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.metric-value {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-dark);
}

.action-list {
  display: grid;
  gap: 10px;
}

.action-link {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--card-border);
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--shadow);
}

.small-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.divider {
  height: 1px;
  background: #f1dde7;
  margin: 14px 0;
  border: 0;
}

.center-stack {
  display: grid;
  gap: 14px;
}

.chart-box {
  position: relative;
  width: 100%;
  height: 220px;
}

.app-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  max-width: 440px;
  margin: 0 auto;
  z-index: 1000;
  padding: 12px 16px calc(10px + env(safe-area-inset-top));
  background: linear-gradient(135deg, rgba(240, 187, 194, 0.96) 0%, rgba(158, 64, 93, 0.96) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(222, 127, 166, 0.08);
}

/* True viewport-centered title fix: `justify-content:space-between` on a
   flex row only balances the GAPS between three unequal-width children -
   it does not center the middle child on the row's own width, so the
   title visibly drifts off-center whenever the left brand block and the
   right icon-group aren't the same width (the normal case). A 3-column
   grid with a fixed middle column keeps the title truly centered
   regardless of how wide either side is, while each side is free to size
   itself naturally via its own 1fr track. */
.app-header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.app-header-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-self: start;
}

.app-header-logo-img {
  height: 30px;
  width: auto;
  display: block;
}

.app-header-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1;
}

.app-header-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  justify-self: center;
  text-align: center;
}

/* Right-hand icon-group is an unclassed 3rd child in header.html (can't be
   targeted by a class without editing that template) - :last-child keys
   off its position in .app-header-row instead. Its own inline
   `display:flex; justify-content:flex-end` still governs how ITS children
   (the icon buttons) lay out; justify-self here only places that whole
   group within its own grid track, mirroring .app-header-brand's
   justify-self:start on the opposite side. */
.app-header-row > div:last-child {
  justify-self: end;
}

.app-header-link {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

/* 丸いボタンにする(2026-09-26、ユーザー指示「ボタンみたいにまるで
   囲える？」)。ヘッダーの地色はピンクなので、白地にピンク文字で抜く -
   未ログイン時の「新規登録」(.app-header-auth-register)と同じ見た目に
   そろえる。ヘッダーに 2 種類の丸ボタンを作らない。
   付けたい画面が header_link_class で選ぶ。既定の .app-header-link は
   これまでどおり素の文字のまま。 */
.app-header-link--pill {
  padding: 6px 14px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #c53060;
  line-height: 1.4;
  text-decoration: none;
}
.app-header-link--pill:active { opacity: 0.75; }

/* 記号だけのボタン(2026-09-26、ユーザー指示「この二つのボタンを
   ヘッダーの縦幅を変えないように大きくして」)。

   字だけ大きくすると行が伸びる。行の高さと同じ 30px の枠に入れて、
   その中で大きくする - 行の高さは左のロゴ(.app-header-logo-img、30px)が
   決めているので、この枠が 30px を超えない限りヘッダーは厚くならない。

   付けたい画面が header_link_class で選ぶ(☰ は記号しか入らないので
   partials/header.html 側で最初から付けてある)。文字が入るボタンには
   付けないこと - 30px の枠に収まらない。 */
.app-header-link--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.app-header-link--icon:active { opacity: 0.6; }

.footer-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #f1dde7;
  box-shadow: 0 -8px 24px rgba(222, 127, 166, 0.08);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.footer-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  color: var(--muted);
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
}

.footer-nav-item-active {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.footer-nav-icon {
  font-size: 18px;
  line-height: 1;
}

/* 線で描く印(2026-09-23、ユーザー指示)。絵文字は端末ごとに形も色も
   変わるので、色はタブの文字色をそのまま継ぐ(currentColor) - 選択中の
   タブでは印も一緒に色が付く。太さ・端の丸めは help_index.html の
   .stroke と同じ値。 */
/* 線で描く印(2026-09-23、ユーザー指示「絵文字が嫌なだけなんだよ」)。
   大きさは 1em - 置き換え先はどこも font-size で絵文字の大きさを決めて
   いたので、そのまま同じ大きさに収まる。色も文字色を継ぐ。 */
/* 文字が続く印。行の中に置いて、文字との間を空ける(2026-09-23)。 */
.icon-stroke-inline {
  display: inline-flex;
  vertical-align: -0.15em;
  margin-right: 6px;
}

/* 自己紹介がまだ無いとき(2026-09-23)。書きに行けることだけ静かに示す。 */
.mypage-bio-empty {
  display: inline-block;
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.icon-stroke {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-nav-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-nav-label {
  font-size: 10px;
  line-height: 1.1;
}

#dashboardCalendar .fc-toolbar-title,
#calendar .fc-toolbar-title {
  font-size: 18px;
}

#dashboardCalendar .fc-event-title,
#calendar .fc-event-title {
  white-space: normal !important;
  word-break: break-word;
  font-size: 11px;
  line-height: 1.2;
}

#dashboardCalendar .fc-daygrid-event,
#calendar .fc-daygrid-event {
  border-radius: 8px;
  padding: 2px 4px;
}

#dashboardCalendar .fc-daygrid-day-number,
#calendar .fc-daygrid-day-number {
  font-size: 13px;
}

@media (max-width: 380px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }
}

.footer-nav-4 {
  grid-template-columns: repeat(4, 1fr);
}


/* ===== UI UPGRADE START ===== */

/* ボタン押下感 */
.button,
button {
  transition: all 0.15s ease;
}

.button:active,
button:active {
  transform: scale(0.96);
  opacity: 0.9;
}

/* カードの質感アップ */
.card {
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

/* 入力欄のフォーカス強化 */
.input:focus,
.textarea:focus,
.select:focus {
  border-color: #e48fb3;
  box-shadow: 0 0 0 3px rgba(228,143,179,0.15);
  transition: all 0.2s ease;
}

/* シートのぬるっと表示 */
.calendar-sheet {
  transition: all 0.25s ease;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
}

.calendar-sheet.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* backdropもふわっと */
.calendar-sheet-backdrop {
  transition: opacity 0.2s ease;
  opacity: 0;
}

.calendar-sheet-backdrop.show {
  opacity: 1;
}

/* タップしやすくする */
.button {
  min-height: 44px;
}

/* リストアイテムのタップ感 */
.ranking-item,
.visit-card {
  transition: all 0.15s ease;
}

.ranking-item:active,
.visit-card:active {
  transform: scale(0.98);
  background: #fff3f8;
}

/* ===== UI UPGRADE END ===== */


/* 今日の日付強調 */
.fc .fc-day-today {
  background: #fff2f7 !important;
  border-radius: 10px;
}

/* 日付数字 */
.fc .fc-daygrid-day-number {
  font-weight: 700;
}


/* カレンダータップ感 */
.fc .fc-daygrid-day {
  transition: transform 0.1s ease, background 0.15s ease;
}

.fc .fc-daygrid-day:active {
  transform: scale(0.96);
  background: #ffe8f1;
}

/* イベント押したとき */
.fc-event:active {
  transform: scale(0.97);
  opacity: 0.9;
}


/* イベントの見やすさ */
.fc-event {
  border: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}


/* ===== MOBILE OPTIMIZE START ===== */
@media (max-width: 480px) {
  .dashboard-monthbar-btn {
    min-width: 44px !important;
    height: 36px !important;
    font-size: 17px !important;
  }

  .dashboard-monthbar-title {
    font-size: 15px !important;
  }

  .fc .fc-daygrid-event {
    padding: 3px 4px !important;
    border-radius: 8px !important;
  }

  .fc-dashboard-shop-line {
    font-size: 10px !important;
    line-height: 1.15 !important;
  }

  .fc-dashboard-time-line {
    font-size: 9px !important;
    line-height: 1.1 !important;
  }

  .calendar-sheet {
    width: calc(100% - 16px) !important;
    bottom: 8px !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .calendar-sheet-actions {
    gap: 12px !important;
  }

  .input,
  .select,
  .textarea,
  .button {
    min-height: 44px !important;
  }

  .textarea {
    min-height: 88px !important;
  }

  .label {
    font-size: 12px !important;
    margin-bottom: 6px !important;
  }
}
/* ===== MOBILE OPTIMIZE END ===== */


/* ===== PayPay風リスト ===== */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #eee;
}

.history-left {
  display: flex;
  gap: 12px;
  align-items: center;
}

.history-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.history-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-title {
  font-weight: 700;
  font-size: 14px;
}

.history-date {
  font-size: 12px;
  color: var(--muted, #6f5a64);
}

.history-right {
  font-weight: 700;
  font-size: 15px;
}

.history-badge {
  margin-top: 4px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-block;
}

.badge-green {
  background: #e6f7ee;
  color: #1f9d5c;
}

.badge-yellow {
  background: #fff3cd;
  color: #d39e00;
}



.footer-nav-5 .footer-nav-item {
  width: 20%;
}

.footer-nav-6 .footer-nav-item {
  width: 16.6667%;
}

/* ===== footer nav 5対応（自動分割）===== */
.footer-nav {
  display: flex;
}

.footer-nav-item {
  flex: 1;
  min-width: 0;
  text-align: center;
}

/* 5タブでも潰れないように微調整 */
.footer-nav-icon {
  font-size: 14px;
}

.footer-nav-label {
  font-size: 10px;
}

/* ===== Shared grouped-list component (iOS/LINE/X style) =====
   Visual language matches customers_shop.html's own #customerList
   design (kept as-is there since it already works and isn't in scope
   for this batch) - shop_members.html and reservations.html use these
   shared classes instead of each growing a near-duplicate copy of the
   same rounded-container/inset-divider/icon+title+trailing pattern. */
.hn-list-group {
  background: #fff;
  border: 1px solid #ece4e8;
  border-radius: 16px;
  overflow: hidden;
}

.hn-list-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.hn-list-row:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 66px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #f1dde7;
}

.hn-list-row:active {
  background: #faf4f7;
}

.hn-list-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #f7eef2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

/* 2026-09-25、ユーザー指摘「アイコンは乙骨の出すべき」: 写真が無い相手でも
   🔔(誰からか分からない旧データ用)とは分け、名前の頭文字で誰からかを
   示す。x-connect.css の .xlist-avatar-none / .xconn-face-initial と同じ
   配色。 */
.notif-actor-initial {
  color: #c9658f;
  font-weight: 800;
  font-size: 16px;
}

.hn-list-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hn-list-title {
  font-size: 14px;
  font-weight: 700;
  color: #2d272a;
  line-height: 1.3;
}

.hn-list-subtitle {
  font-size: 12px;
  color: var(--muted, #6f5a64);
  line-height: 1.3;
}

.hn-list-field {
  font-size: 12px;
  color: #6f5a64;
  line-height: 1.4;
}

.hn-list-field-label {
  color: var(--muted, #6f5a64);
  margin-right: 4px;
}

.hn-list-trailing {
  text-align: right;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.hn-list-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
}

.hn-list-empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--muted, #6f5a64);
  font-size: 13px;
}

@media (max-width: 480px) {
  .hn-list-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }
  .hn-list-row:not(:last-child)::after {
    left: 58px;
  }
  .hn-list-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

/* ===== Shared hn-combo.js widget CSS (LINE/X-style combo button) =====
   Previously copy-pasted byte-identically into shop_management.html,
   shop_members.html, and settings_members.html - consolidated here so
   customers_shop.html's new period combo (and any future combo) can
   reuse it without a 4th near-duplicate block. Class names match
   hn-combo.js's own hnRenderComboButton/hnOpenComboMenu output. */
.op-cal-shop-btn {
  border-radius: 8px;
  border: 1px solid #ead6de;
  display: flex;
  align-items: center;
  gap: 3px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
}
.op-cal-shop-btn-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.op-cal-shop-btn-caret {
  flex-shrink: 0;
}
.op-cal-combo-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #ead6de;
  border-radius: 8px;
  background: #fff;
  color: #6f5a64;
  font-size: 12px;
  font-weight: 700;
  height: 32px;
  padding: 0 10px;
  cursor: pointer;
}
.op-cal-combo-btn:active {
  background: #fdf0f5;
}
.op-cal-shop-menu {
  position: fixed;
  z-index: 99999;
  background: #fff;
  border: 1px solid #ead6de;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  min-width: 140px;
  max-width: calc(100vw - 16px);
  overflow: hidden;
}
.op-cal-shop-option {
  display: block;
  width: 100%;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-bottom: 1px solid #f2eaee;
  background: #fff;
  color: #6f5a64;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.op-cal-shop-option:last-child {
  border-bottom: none;
}
.op-cal-shop-option-active {
  background: #faf0f4;
  color: var(--primary, #de7fa6);
}


/* ============================================================
   押した感じ(2026-10-14、ユーザー指示)
   ------------------------------------------------------------
   それまで押した返しがあったのは危険ボタン 4 種だけで、**一覧の行・
   設定の行・アカウントの行・通常ボタンは押しても何も起きなかった**。
   スマホでは「押せたのか分からない」が一番効くので、ここへ入れる。

   幅いっぱいの行は **縮めず背景だけ**(区切り線ごと動くと一覧から浮く)。
   独立したボタンは既存の危険ボタンと同じ scale。
   ============================================================ */

/* --- 行: 背景だけ --- */
.settings-list-item,
.sdetail-item,
.acctsw-item {
  transition: background-color var(--hn-dur-press) linear;
  /* 自前の返しを出すので、端末の既定のハイライトは消す。
     **消すだけにしてはいけない** - 下の :active が代わりになる。 */
  -webkit-tap-highlight-color: transparent;
}
.settings-list-item:active,
.sdetail-item:active,
.acctsw-item:active {
  background-color: var(--hn-press-wash);
}

/* --- ボタン: 軽く沈む --- */
.hn-btn-ghost {
  transition: transform var(--hn-dur-press) var(--hn-ease-press),
              background-color var(--hn-dur-press) linear;
  -webkit-tap-highlight-color: transparent;
}
.hn-btn-ghost:active {
  transform: scale(var(--hn-press-scale));
  background-color: var(--hn-press-wash);
}

/* --- 動きを控える設定: 位置と拡縮はやめ、色は残す --- */
@media (prefers-reduced-motion: reduce) {
  .hn-btn-ghost:active { transform: none; }
  .settings-list-item,
  .sdetail-item,
  .acctsw-item,
  .hn-btn-ghost { transition-duration: 1ms; }
}
