@charset "UTF-8";
/* =========================================================
   立替精算アプリ － アプリ本体スタイル
   カンプ「立替精算アプリ_採用案_B2ベース.html」から抽出し、
   実装用に以下を追加・変更しています。

   [追加] フォーカス・ホバー・押下・無効の各状態（カンプは静的のため未定義だった）
   [追加] 最小タップ領域 44px の確保
   [変更] .app をビューポート全体のレイアウトに変更（カンプでは375px枠の中身だった）
   [変更] PC表示の最大幅 480px・中央寄せを body 側で実現
   [削除] カンプの台紙（.board / .frame / .sect / .dummy-flag など）

   準拠：デジタル庁デザインシステム β版 v2.18.0（dads-markdown-20260909）
   キーカラー：Green
   ========================================================= */

/* ---------------------------------------------------------
   1. デザイントークン
   --------------------------------------------------------- */
:root{
  /* プリミティブ：Green（キーカラー） */
  --green-50:#e6f5ec; --green-100:#c2e5d1; --green-200:#9bd4b5; --green-300:#71c598;
  --green-400:#51b883; --green-500:#2cac6e; --green-600:#259d63; --green-800:#197a4b;
  --green-900:#115a36; --green-1000:#0c472a; --green-1100:#08351f;
  /* プリミティブ：Yellow */
  --yellow-50:#fbf5e0; --yellow-300:#ffd43d; --yellow-400:#ffc700; --yellow-700:#b78f00;
  --yellow-900:#927200; --yellow-1000:#806300;
  /* プリミティブ：Red */
  --red-50:#fdeeee; --red-800:#ec0000; --red-900:#ce0000; --red-1000:#a90000;
  /* ニュートラル（Solid Gray） */
  --white:#ffffff; --black:#000000;
  --gray-50:#f2f2f2; --gray-100:#e6e6e6; --gray-200:#cccccc; --gray-300:#b3b3b3;
  --gray-400:#999999; --gray-420:#949494; --gray-500:#7f7f7f; --gray-536:#767676;
  --gray-600:#666666; --gray-700:#4d4d4d; --gray-800:#333333; --gray-900:#1a1a1a;

  /* セマンティック */
  --error-1:var(--red-800); --error-2:var(--red-900);
  --success-1:var(--green-600); --success-2:var(--green-800);
  --warning-2:var(--yellow-900);

  /* キーカラー別名 */
  --key-50:var(--green-50); --key-100:var(--green-100); --key-200:var(--green-200); --key-300:var(--green-300);
  --key-900:var(--green-900); --key-1000:var(--green-1000); --key-1100:var(--green-1100);

  /* タイポグラフィ */
  --font-sans:'Noto Sans JP',-apple-system,BlinkMacSystemFont,'Hiragino Sans','Yu Gothic',sans-serif;

  /* 角丸・影 */
  --radius-4:4px; --radius-6:6px; --radius-8:8px; --radius-12:12px; --radius-16:16px;
  --shadow-1:0 2px 8px 1px rgba(0,0,0,.1), 0 1px 5px 0 rgba(0,0,0,.3);
  --shadow-3:0 4px 16px 3px rgba(0,0,0,.1), 0 1px 6px 0 rgba(0,0,0,.3);

  /* レイアウト */
  --app-bg:var(--gray-50);
  --app-max-width:480px;      /* PC表示の最大幅 */
  --r-card:var(--radius-16);
  --r-ctrl:var(--radius-12);
  /* 罫線は隣接背景とのコントラスト比3:1以上を確保すること
     gray-500 … 白地4.0:1／Gray-50地3.58:1、gray-420 … 白地3.03:1 */
  --line:var(--gray-500);
  --divider:var(--gray-420);
}

/* ---------------------------------------------------------
   2. リセットとページ全体
   --------------------------------------------------------- */
*{box-sizing:border-box;}

html{
  font-family:var(--font-sans);
  /* iOS Safari のアドレスバー伸縮に追従させる */
  height:100%;
}

body{
  margin:0;
  min-height:100%;
  background:var(--gray-50);
  color:var(--gray-800);
  font-size:16px;
  line-height:1.7;
  letter-spacing:.02em;
  -webkit-font-smoothing:antialiased;
  /* PC でも幅を制限して同じ画面を出す */
  display:flex;
  justify-content:center;
}

/* アプリ本体。スマホでは全幅、PCでは480pxで中央寄せ */
.app{
  position:relative;
  width:100%;
  max-width:var(--app-max-width);
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  background:var(--app-bg);
}

@media (min-width:481px){
  .app{ box-shadow:0 0 0 1px var(--gray-500); }
}

/* スクロール領域 */
.app__scroll{flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch;}
/* カンプ専用の修飾子（画面下端のフェードを消す指定）。
   app.css ではフェード自体を持たないため、実装では付けなくてよい。
   カンプのHTMLをそのまま貼ったときに未定義にならないよう残してあります */
.app__scroll--noshade{}
.app__inner{padding:16px;}

/* 共通ユーティリティ */
.num{font-variant-numeric:tabular-nums; letter-spacing:0;}
.muted{color:var(--gray-600); font-size:14px; line-height:1.6;}
.delta--plus{color:var(--success-2); font-weight:700;}
.delta--minus{color:var(--error-2); font-weight:700;}
.visually-hidden{
  position:absolute; width:1px; height:1px; margin:-1px; padding:0;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* ---------------------------------------------------------
   3. フォーカスインジケーター（DADS：いかなる場合も変更しないこと）
   黒4px＋Yellow-300の2重構造
   --------------------------------------------------------- */
:where(a, button, input, select, textarea, [tabindex]):focus-visible{
  outline:4px solid var(--black);
  outline-offset:2px;
  box-shadow:0 0 0 2px var(--yellow-300);
  border-radius:var(--radius-4);
}

/* ---------------------------------------------------------
   4. ヘッダー
   --------------------------------------------------------- */
.hdr{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  background:var(--white); border-bottom:1px solid var(--line);
  padding:12px 16px; min-height:56px; flex:0 0 auto;
}
.hdr__title{margin:0; font-size:17px; font-weight:700; line-height:1.3; color:var(--gray-900); letter-spacing:.02em;}
.hdr__actions{display:flex; gap:4px;}

.hdr__icon{
  display:flex; align-items:center; justify-content:center;
  width:44px; height:44px; border:0; background:transparent;
  border-radius:var(--radius-8); color:var(--key-900); cursor:pointer;
  padding:0;
}
@media (hover:hover){
  .hdr__icon:hover{background:var(--key-50);}
}
.hdr__icon:active{background:var(--key-100);}

.hdr__back{
  display:inline-flex; align-items:center; gap:4px; min-height:44px;
  color:var(--key-900); font-size:16px;
  text-decoration:underline; text-underline-offset:3px;
}
@media (hover:hover){
  .hdr__back:hover{color:var(--key-1000); text-decoration-thickness:3px;}
}

/* ---------------------------------------------------------
   5. 残高ヒーロー
   --------------------------------------------------------- */
.hero{background:var(--key-900); color:var(--white); padding:24px 16px 20px; flex:0 0 auto;}
.hero__label{margin:0 0 8px; font-size:14px; line-height:1.3;}
.hero__flow{display:flex; align-items:center; gap:8px; margin:0 0 4px;}
.hero__who{
  display:inline-flex; align-items:center; font-size:16px; font-weight:700; line-height:1.3;
  background:rgba(255,255,255,.2); border-radius:999px; padding:6px 12px;
}
.hero__amount{margin:4px 0 0; font-size:40px; font-weight:700; line-height:1.4; letter-spacing:.01em;}
.hero__sub{margin:4px 0 16px; font-size:14px; line-height:1.4;}
.hero__sub--last{margin-bottom:0;}
.hero--compact{padding-bottom:16px;}
.hero--compact .hero__amount{font-size:32px;}

/* ---------------------------------------------------------
   6. ボタン（DADS：ボタン準拠）
   --------------------------------------------------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:4px;
  font-family:var(--font-sans); font-weight:700; font-size:16px; line-height:1;
  letter-spacing:.02em; text-decoration:none;
  width:fit-content; max-width:100%;
  min-width:96px; min-height:48px;
  border-radius:var(--r-ctrl); padding:8px 16px;
  border:4px double transparent;
  background:var(--key-900); color:var(--white);
  cursor:pointer;
}
.btn--lg{min-width:136px; min-height:56px; padding:12px 16px;}
.btn--block{width:100%;}

@media (hover:hover){
  .btn:hover:not(:disabled){background:var(--key-1000); text-decoration:underline; text-decoration-thickness:1px;}
}
.btn:active:not(:disabled){background:var(--key-1100); text-decoration:underline;}
.btn:disabled,
.btn[aria-disabled="true"]{
  background:var(--gray-300); color:var(--gray-50);
  text-decoration:none; cursor:default;
}

/* アウトライン */
.btn--outline{background:var(--white); color:var(--key-900); border:1px solid currentColor;}
@media (hover:hover){
  .btn--outline:hover:not(:disabled){background:var(--key-200); color:var(--key-1000);}
}
.btn--outline:active:not(:disabled){background:var(--key-300); color:var(--key-1000);}
.btn--outline:disabled,
.btn--outline[aria-disabled="true"]{background:var(--white); color:var(--gray-300);}

/* キーカラー面の上に置く白ボタン */
.btn--onkey{background:var(--white); color:var(--key-1000);}
@media (hover:hover){
  .btn--onkey:hover:not(:disabled){background:var(--key-50); color:var(--key-1000);}
}
.btn--onkey:active:not(:disabled){background:var(--key-100);}

/* 破壊的操作 */
.btn--danger{background:var(--white); color:var(--error-2); border:1px solid currentColor;}
@media (hover:hover){
  .btn--danger:hover:not(:disabled){background:var(--red-50); color:var(--red-1000);}
}
.btn--danger:active:not(:disabled){background:var(--red-50); color:var(--red-1000);}

.btn--danger-fill{background:var(--error-2); color:var(--white); border:4px double transparent;}
@media (hover:hover){
  .btn--danger-fill:hover:not(:disabled){background:var(--red-1000);}
}

/* テキストボタン */
.btn--text{
  background:transparent; color:var(--key-900); border:0;
  text-decoration:underline; text-underline-offset:3px;
  min-width:0; min-height:44px; padding:0 4px;
}
@media (hover:hover){
  .btn--text:hover:not(:disabled){background:var(--key-50); color:var(--key-1000); text-decoration-thickness:3px;}
}
.btn--text:active:not(:disabled){background:var(--key-100);}
.btn--text:focus-visible{background:var(--yellow-300);}

.btn--text-danger{
  background:transparent; color:var(--error-2); border:0;
  text-decoration:underline; text-underline-offset:3px;
  min-width:0; min-height:44px; padding:0 4px;
}
@media (hover:hover){
  .btn--text-danger:hover:not(:disabled){background:var(--red-50); color:var(--red-1000); text-decoration-thickness:3px;}
}

/* 小サイズ。見た目は36pxでも、擬似要素でタップ領域44pxを確保する */
.btn--sm{
  position:relative;
  min-width:80px; min-height:36px;
  border-radius:var(--radius-6); padding:2px 12px;
}
.btn--sm::after{
  content:""; position:absolute; inset:0; margin:auto; height:44px;
}

/* 本文中のインラインリンク（DADS：リンクテキスト準拠） */
.link{color:var(--key-900); text-decoration:underline; text-underline-offset:3px;}
@media (hover:hover){
  .link:hover{color:var(--key-1000); text-decoration-thickness:3px;}
}

/* 高コントラストモード */
@media (forced-colors:active){
  .btn:disabled,
  .btn[aria-disabled="true"]{border-color:GrayText; color:GrayText;}
}

/* ---------------------------------------------------------
   7. フォーム（DADS：フォームコントロールラベル／インプットテキスト準拠）
   --------------------------------------------------------- */
.field{display:flex; flex-direction:column; gap:8px; margin:0 0 16px; border:0; padding:0; min-width:0;}
.field__label{font-size:17px; font-weight:700; line-height:1.6; color:var(--gray-800); align-self:start; padding:0;}
.field__req{margin-left:4px; font-weight:400; font-size:16px; color:var(--error-1);}
.field__opt{margin-left:4px; font-weight:400; font-size:16px; color:var(--gray-600);}
.field__support{margin:0; font-size:16px; line-height:1.6; color:var(--gray-600);}
.field__error{margin:0; font-size:16px; line-height:1.3; letter-spacing:0; color:var(--error-1);}

.input{
  width:100%; height:48px;
  border:1px solid var(--gray-600); border-radius:var(--r-ctrl);
  background:var(--white); padding:12px 16px;
  font:inherit; line-height:1; color:var(--gray-900); letter-spacing:.02em;
}
.input--amount{font-size:20px; font-weight:700; text-align:right; font-variant-numeric:tabular-nums;}
textarea.input{height:auto; min-height:88px; line-height:1.6; resize:vertical;}

@media (hover:hover){
  .input:not(:read-only):not(:disabled):hover{border-color:var(--black);}
}
.input:is(:user-invalid, [aria-invalid="true"]){border-color:var(--error-1); border-width:2px;}
@media (hover:hover){
  .input:is(:user-invalid, [aria-invalid="true"]):hover{border-color:var(--red-1000);}
}
.input:disabled,
.input[aria-disabled="true"]{
  border-color:var(--gray-300); background:var(--gray-50); color:var(--gray-420);
}

/* ---------------------------------------------------------
   8. ラジオ（DADS：ラジオ準拠）
   --------------------------------------------------------- */
.radios{display:flex; flex-direction:column; gap:8px;}

.radio{display:flex; align-items:start; gap:8px; padding:8px 0; width:fit-content; cursor:pointer;}
.radio__mark{
  position:relative; flex-shrink:0; width:26px; height:26px; border-radius:50%;
  border:2px solid var(--gray-600); background:var(--white);
}
.radio__label{padding-top:4px; font-size:16px; line-height:1.3; color:var(--gray-800); letter-spacing:0;}

/* 実装では input[type=radio] を .radio__input として .radio__mark 内に置き、
   :checked を親の見た目に反映させること（下の has() セレクタ） */
.radio__input{
  position:absolute; inset:0; width:100%; height:100%;
  margin:0; opacity:0; cursor:pointer;
}
.radio:has(.radio__input:checked) .radio__mark{border-color:var(--key-900);}
.radio:has(.radio__input:checked) .radio__mark::before{
  content:""; position:absolute; inset:0; margin:auto; width:12px; height:12px;
  border-radius:50%; background:var(--key-900);
}
.radio:has(.radio__input[aria-invalid="true"]) .radio__mark{border-color:var(--error-1);}
.radio:has(.radio__input:focus-visible) .radio__mark{
  outline:4px solid var(--black); outline-offset:2px;
  box-shadow:0 0 0 2px var(--yellow-300);
}
@media (hover:hover){
  .radio:hover .radio__mark{border-color:var(--black);}
}

/* カード型ラジオ */
.radio-card{
  display:flex; align-items:center; gap:8px; padding:12px;
  border:1px solid var(--gray-536); border-radius:var(--r-ctrl);
  background:var(--white); width:100%; min-height:48px;
}
.radio-card:has(.radio__input:checked){
  border-color:var(--key-900); border-width:2px; background:var(--key-50); padding:11px;
}
.radio-card:has(.radio__input[aria-invalid="true"]){border-color:var(--error-1);}
@media (hover:hover){
  .radio-card:hover{border-color:var(--key-900);}
}

/* ---------------------------------------------------------
   9. チップラベル（DADS：チップラベル準拠）
   --------------------------------------------------------- */
.chip{
  display:inline-flex; align-items:center;
  font-size:14px; line-height:1.3; font-weight:700;
  border-radius:var(--radius-4); padding:3px 8px; border:1px solid transparent;
}
.chip--split{background:var(--key-100); color:var(--key-1000); border-color:var(--green-800);}
.chip--full{background:var(--gray-100); color:var(--gray-800); border-color:var(--gray-536);}
.chip--photo{background:var(--white); color:var(--gray-700); border-color:var(--gray-536); font-weight:400;}
.chip--done{background:var(--gray-100); color:var(--gray-700); border-color:var(--gray-536);}

/* ---------------------------------------------------------
   10. 通知バナー（DADS：通知バナー color-chip スタイル準拠）
   --------------------------------------------------------- */
.banner{
  display:grid; grid-template-columns:24px 1fr; gap:12px;
  border:2px solid var(--error-1); box-shadow:inset 8px 0 0 0 var(--error-1);
  background:var(--white); border-radius:var(--radius-12);
  padding:12px 16px 14px 20px; margin:0 0 16px;
}
.banner__icon{color:var(--error-1); width:24px; height:24px;}
.banner__title{margin:0 0 4px; font-size:17px; font-weight:700; line-height:1.5; color:var(--gray-900);}
.banner__body{font-size:14px; line-height:1.6; color:var(--gray-800);}
.banner__body ul{margin:4px 0 0; padding-left:1.4em;}
.banner--success{border-color:var(--success-2); box-shadow:inset 8px 0 0 0 var(--success-2);}
.banner--success .banner__icon{color:var(--success-2);}
.banner--warning{border-color:var(--warning-2); box-shadow:inset 8px 0 0 0 var(--yellow-400);}
.banner--warning .banner__icon{color:var(--warning-2);}

/* ---------------------------------------------------------
   11. 一覧
   --------------------------------------------------------- */
.panel{background:var(--white); border-radius:var(--radius-16); box-shadow:var(--shadow-1); padding:18px;}
.group{margin:4px 0 8px; font-size:14px; font-weight:700; line-height:1.3; color:var(--gray-700); padding-left:4px;}

.list{
  margin:0; padding:0; list-style:none;
  background:var(--white); border-radius:var(--radius-16);
  box-shadow:var(--shadow-1); overflow:hidden;
}
.list > li{border-bottom:1px solid var(--divider);}
.list > li:last-child{border-bottom:0;}

/* 行そのものをボタンにする（記録の編集を開く） */
.row{
  display:flex; align-items:start; gap:12px;
  width:100%; padding:14px 16px;
  background:transparent; border:0; font:inherit; color:inherit;
  text-align:left; cursor:pointer;
}
@media (hover:hover){
  .row:hover{background:var(--key-50);}
}
.row:active{background:var(--key-100);}

.row__thumb{
  width:44px; height:44px; border-radius:var(--radius-8);
  background:var(--gray-100); border:1px solid var(--gray-536);
  display:flex; align-items:center; justify-content:center;
  color:var(--gray-700); flex:0 0 auto;
}
.row__body{flex:1; min-width:0;}
.row__date{margin:0 0 2px; font-size:13px; line-height:1.3; color:var(--gray-600);}
.row__memo{margin:0; font-size:17px; font-weight:700; line-height:1.4; color:var(--gray-900);}
.row__meta{margin:6px 0 0; font-size:14px; line-height:1.4; color:var(--gray-700); display:flex; flex-wrap:wrap; align-items:center; gap:6px;}
.row__right{text-align:right; flex:0 0 auto;}
.row__amount{font-size:19px; font-weight:700; line-height:1.3; color:var(--gray-900);}
.row__delta{display:block; margin-top:2px; font-size:14px; line-height:1.3;}

/* ---------------------------------------------------------
   12. 空状態
   --------------------------------------------------------- */
.empty{
  background:var(--white); border-radius:var(--radius-16); box-shadow:var(--shadow-1);
  padding:32px 20px; text-align:center;
}
.empty__icon{color:var(--gray-500); margin:0 auto 12px; display:block;}
.empty__title{margin:0 0 8px; font-size:17px; font-weight:700; line-height:1.5; color:var(--gray-900);}
.empty__text{margin:0; font-size:14px; line-height:1.7; color:var(--gray-700);}

/* ---------------------------------------------------------
   13. モーダルダイアログ（DADS：モーダルダイアログ準拠）

   実装では <dialog class="modal"> を showModal() で開きます。
   このとき背景は .scrim の div ではなく ::backdrop になるため、
   ブラウザ既定のスタイルを打ち消したうえで ::backdrop を指定します。
   （.scrim はカンプの静的表現。実装では使いません）
   --------------------------------------------------------- */
dialog.modal{
  /* ブラウザ既定の打ち消し：dialog は既定で margin:auto / max-width:calc(100% - 6px) などを持つ */
  margin:0; padding:0; border:0;
  max-width:none; max-height:none;
  background:transparent; color:inherit;
  overflow:visible;
  /* 画面下端から迫り出す配置（カンプの .scrim と同じ見え方にする） */
  position:fixed; inset:0;
  width:100%; height:100%;
  display:flex; align-items:flex-end; justify-content:center;
}
dialog.modal[open]{display:flex;}
dialog.modal:not([open]){display:none;}
dialog.modal::backdrop{background:rgba(0,0,0,.5);}

/* 中央に置くモーダル（精算の完了・取消確認・競合ダイアログ） */
dialog.modal--center{align-items:center; padding:16px;}

/* 写真の拡大表示。背景をより濃くする */
dialog.modal--photo{align-items:stretch; flex-direction:column;}
dialog.modal--photo::backdrop{background:rgba(0,0,0,.85);}

/* dialog の中身を包む箱。ここが白いカードになる */
.modal__panel{
  width:100%; max-width:var(--app-max-width);
  background:var(--white);
  border-radius:var(--radius-16) var(--radius-16) 0 0;
  box-shadow:var(--shadow-3);
  max-height:94dvh; overflow:hidden;
  display:flex; flex-direction:column;
}
.modal--center .modal__panel{border-radius:var(--radius-16); max-height:90dvh;}
.modal--photo .modal__panel{background:transparent; box-shadow:none; max-height:100dvh; height:100%; color:var(--white);}

/* カンプ用の静的表現（実装では使わない）。カンプを直接開いたときの見た目を保つため残す。
   セレクタを div に限定しているのは、dialog.modal と競合させないためです。
   限定しないと .modal の flex-direction:column が dialog 側に効いてしまいます */
.scrim{
  position:fixed; inset:0; z-index:100;
  background:rgba(0,0,0,.5);
  display:flex; align-items:flex-end; justify-content:center;
}
.scrim--center{align-items:center; padding:16px;}
.scrim--photo{background:rgba(0,0,0,.85); align-items:stretch; flex-direction:column;}

div.modal{
  width:100%; max-width:var(--app-max-width);
  background:var(--white);
  border-radius:var(--radius-16) var(--radius-16) 0 0;
  box-shadow:var(--shadow-3);
  max-height:94dvh; overflow:hidden;
  display:flex; flex-direction:column;
  border:0; padding:0;
}
div.modal--center{border-radius:var(--radius-16); max-height:90dvh;}
.modal__hdr{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:16px; border-bottom:1px solid var(--line); flex:0 0 auto;
}
.modal__title{margin:0; font-size:20px; font-weight:700; line-height:1.5; color:var(--gray-900);}
.modal__body{padding:16px; overflow-y:auto; flex:1;}
.modal__ftr{display:flex; gap:12px; padding:16px; border-top:1px solid var(--line); background:var(--white); flex:0 0 auto;}
.modal__ftr .btn{flex:1;}
.modal__ftr--stack{flex-direction:column;}
.modal__ftr--stack .btn{width:100%;}

/* ---------------------------------------------------------
   14. 写真の拡大表示
   --------------------------------------------------------- */
.photo__bar{display:flex; align-items:center; justify-content:space-between; padding:12px 16px; color:var(--white);}
.photo__bar .hdr__icon{color:var(--white);}
.photo__stage{flex:1; display:flex; align-items:center; justify-content:center; padding:16px; overflow:auto;}
.photo__img{
  max-width:100%; max-height:100%; width:auto; height:auto;
  border-radius:var(--radius-8); background:var(--gray-200);
}
.photo__foot{display:flex; gap:12px; padding:16px; justify-content:center;}

/* ---------------------------------------------------------
   15. 説明リスト（DADS：説明リスト準拠）
   --------------------------------------------------------- */
.dl{margin:0; border-top:1px solid var(--line);}
.dl__row{display:flex; gap:12px; border-bottom:1px solid var(--line); padding:12px 0;}
.dl dt{flex:0 0 96px; font-size:14px; font-weight:700; color:var(--gray-700); line-height:1.5; margin:0;}
.dl dd{flex:1; margin:0; font-size:16px; line-height:1.5; color:var(--gray-900);}

/* ---------------------------------------------------------
   16. 画面下部の固定アクション
   --------------------------------------------------------- */
.footbar{
  flex:0 0 auto; border-top:1px solid var(--line); background:var(--white);
  padding:12px 16px; display:flex; gap:12px; align-items:center;
  /* iPhone のホームインジケーター分を確保 */
  padding-bottom:calc(12px + env(safe-area-inset-bottom));
}
.footbar .btn{flex:1;}

/* ---------------------------------------------------------
   17. 補足ブロック
   --------------------------------------------------------- */

/* 注釈ブロック（DADS：注釈ブロック準拠）。画面8の「実行すると」など */
.notice{
  border:1px solid var(--gray-536); border-radius:var(--radius-8);
  background:var(--white); padding:14px 16px; margin:0 0 16px;
  font-size:14px; line-height:1.7; color:var(--gray-800);
}
.notice:last-child{margin-bottom:0;}
.notice__title{margin:0 0 8px; font-size:16px; font-weight:700; line-height:1.6; color:var(--gray-900);}
.notice p{margin:0 0 8px;}
.notice p:last-child{margin-bottom:0;}
.notice ul{margin:0; padding-left:1.5em;}
.notice li{padding:2px 0;}
.notice b{color:var(--gray-900);}

/* パネル内の小見出し。カンプでインラインstyleだった箇所のクラス化 */
.panel__title{
  margin:0 0 4px; font-size:17px; font-weight:700; line-height:1.5; color:var(--gray-900);
}
.panel__lead{margin:0 0 16px; font-size:14px; line-height:1.6; color:var(--gray-600);}
.panel + .panel{margin-top:16px;}

/* 共有URLの表示（画面19） */
.url-box{
  display:block; width:100%;
  border:1px solid var(--gray-536); border-radius:var(--r-ctrl);
  background:var(--gray-50); padding:12px 14px; margin:0 0 12px;
  font-size:14px; line-height:1.6; color:var(--gray-900);
  word-break:break-all; font-variant-numeric:tabular-nums;
}

.hint{
  border:1px solid var(--gray-536); border-radius:var(--r-ctrl);
  background:var(--white); padding:12px 14px;
  font-size:14px; line-height:1.6; color:var(--gray-700);
}
.hint b{color:var(--gray-900);}

/* ---------------------------------------------------------
   18. 相手の更新通知（非モーダル）
   --------------------------------------------------------- */
.syncbar{
  display:flex; align-items:center; gap:10px;
  background:var(--white); border-radius:var(--radius-12);
  box-shadow:var(--shadow-1); border-left:8px solid var(--key-900);
  padding:10px 12px; margin:0 0 12px;
}
.syncbar__icon{color:var(--key-900); flex:0 0 auto;}
.syncbar__text{margin:0; flex:1; min-width:0; font-size:14px; line-height:1.4; color:var(--gray-800);}
.syncbar__text b{color:var(--gray-900);}
.syncbar .btn{flex:0 0 auto; min-width:auto; padding:2px 10px;}

/* ---------------------------------------------------------
   19. 競合の比較表示
   --------------------------------------------------------- */
.cmp{border:1px solid var(--gray-536); border-radius:var(--r-ctrl); padding:12px 14px; margin:0 0 12px;}
.cmp--theirs{border-color:var(--warning-2); border-width:2px; background:var(--yellow-50);}
.cmp__head{margin:0 0 8px; font-size:14px; font-weight:700; line-height:1.4; color:var(--gray-900); display:flex; flex-wrap:wrap; gap:6px; align-items:baseline;}
.cmp__head span{font-weight:400; color:var(--gray-600); font-size:13px;}
.cmp__list{margin:0;}
.cmp__row{display:flex; gap:10px; padding:5px 0; align-items:baseline;}
.cmp__row dt{flex:0 0 72px; margin:0; font-size:13px; line-height:1.5; color:var(--gray-700);}
.cmp__row dd{flex:1; margin:0; font-size:16px; line-height:1.5; color:var(--gray-900); display:flex; flex-wrap:wrap; gap:6px; align-items:baseline;}
/* 変更バッジ：12pxの小さな文字のため、Yellow-1000 で 5.2:1 を確保する */
.diff{
  font-size:12px; font-weight:700; line-height:1.3;
  color:var(--yellow-1000); border:1px solid var(--yellow-1000);
  border-radius:var(--radius-4); padding:1px 5px;
}

/* ---------------------------------------------------------
   20. 履歴の内訳ヘッダー
   --------------------------------------------------------- */
.dtl{background:var(--white); border-radius:var(--radius-16); box-shadow:var(--shadow-1); padding:18px; margin:0 0 16px;}
.dtl__date{margin:0 0 2px; font-size:13px; line-height:1.3; color:var(--gray-600);}
.dtl__flow{margin:0 0 8px; font-size:17px; font-weight:700; line-height:1.4; color:var(--gray-900);}
.dtl__amount{margin:0; font-size:32px; font-weight:700; line-height:1.3; color:var(--key-1000);}

/* ---------------------------------------------------------
   21. モーション（動きに敏感な利用者への配慮）
   --------------------------------------------------------- */
@media (prefers-reduced-motion:reduce){
  *, *::before, *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
}
