@charset "UTF-8";
/* お申込・ご注文状況 (/history/)。.hist- 配下のみ。カード=白+1px #E0E0E0+radius8px(line-summary作法)。
   ※小さい文字(11〜12px)の #999 はAA未達のため #666 に統一(ピルの #00796B と同じ基準)。 */

/* ページ内ジャンプ */
.hist-jump { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.hist-jump a { display: inline-flex; align-items: center; padding: 6px 14px; background: var(--n-0, #fff); border: 1px solid var(--n-250, #E0E0E0); border-radius: var(--radius-pill, 999px); font-size: 12px; color: var(--c-slate, #273343); text-decoration: none; transition: var(--transition, 0.3s ease); }
/* 狭い画面では指で押す。高さ 36px → 44px(2026-10-17 解約改善 Phase 5・C5) */
@media screen and (max-width: 480px) { .hist-jump a { min-height: 44px; } }
.hist-jump a:hover { border-color: var(--c-interaction, #00B19F); background: var(--c-tint-teal, #E5F7F5); color: var(--c-interaction-ink, #00796B); }

/* セクション見出し右肩の件数 */
.hist-section h2 { display: flex; align-items: center; }
.hist-count { margin-left: auto; padding: 2px 10px; background: var(--n-100, #F5F5F5); border: 1px solid var(--n-300, #CCC); border-radius: 11px; font-size: 11px; font-weight: 600; color: var(--n-500, #666); white-space: nowrap; }

/* レコードカード */
.hist-list { list-style: none; margin: 0; padding: 0; }
.hist-list > li + li { margin-top: 10px; }
/* .hist-card の白地・枠・角丸・余白は member-recipes.css の共通レシピ */
.hist-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.hist-date { font-size: 12px; color: var(--n-500, #666); }
.hist-no { font-size: 11px; color: var(--n-500, #666); }
.hist-title { margin-top: 6px; font-size: 15px; font-weight: 600; line-height: 1.6; color: var(--c-slate, #273343); }
.hist-summary { margin-top: 2px; font-size: 13px; line-height: 1.8; color: var(--c-slate, #273343); }
.hist-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 15px; margin-top: 4px; }
.hist-price { font-size: 18px; font-weight: 600; color: var(--c-slate, #273343); }
.hist-price span { font-size: 11px; font-weight: 500; margin-left: 2px; }
.hist-updated { font-size: 12px; color: var(--n-500, #666); }

/* 状態ピルの土台と色は member-recipes.css の共通レシピ。
   右端へ寄せるのはこの画面だけの都合なので、ここに残す。 */
.hist-status { margin-left: auto; }

/* 全文の折りたたみ */
.hist-detail { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--n-250, #E0E0E0); }
.hist-detail summary { display: inline-block; font-size: 12px; color: #0068B7; text-decoration: underline; cursor: pointer; }
.hist-detail summary:hover { text-decoration: none; }
.hist-detail pre { margin-top: 8px; padding: 12px; background: var(--n-75, #F8F8F8); border-radius: var(--radius-sm, 6px); font-family: inherit; font-size: 13px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }

/* 空状態(ベージュ #F8F7F4 = 既存帯st02) */
.hist-empty { background: var(--c-tint-beige, #F8F7F4); border-radius: var(--radius-md, 8px); padding: 30px 15px; text-align: center; }
.hist-empty p { margin: 0; }
.hist-empty .hist-empty-sub { margin-top: 6px; font-size: 12px; color: var(--n-500, #666); }

/* ページャ(.pagenation は全CSS未定義のため本ファイルが初装飾。自クラス .hist-pager 起点) */
.hist-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.hist-pager .page-numbers { min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--n-0, #fff); border: 1px solid var(--n-250, #E0E0E0); border-radius: var(--radius-pill, 999px); font-size: 13px; color: var(--c-slate, #273343); text-decoration: none; transition: var(--transition, 0.3s ease); }
.hist-pager a.page-numbers:hover { border-color: var(--c-interaction, #00B19F); background: var(--c-tint-teal, #E5F7F5); color: var(--c-interaction-ink, #00796B); }
.hist-pager .page-numbers.current { background: var(--c-slate, #273343); border-color: var(--c-slate, #273343); color: var(--n-0, #fff); font-weight: 600; }
.hist-pager .page-numbers.dots { min-width: auto; padding: 0 2px; background: none; border: none; color: var(--n-500, #666); }

/* 読み込み中 */
.hist-loading { background: var(--n-50, #FAFAFA); border: 1px solid var(--n-250, #E0E0E0); border-radius: var(--radius-md, 8px); padding: 30px 15px; text-align: center; font-size: 13px; color: var(--n-500, #666); }

@media screen and (max-width: 480px) {
  .hist-card { padding: 12px; }
  .hist-price { font-size: 16px; }
  .hist-pager .page-numbers { min-width: 40px; height: 40px; }
}

/* 末尾の注記(他ページの .usage-note / .mail-history-note と同じ見た目) */
.hist-note {
  margin: 0;
  padding: 12px 15px;
  background: var(--c-tint-beige, #F8F7F4);
  border-radius: var(--radius-md, 8px);
  font-size: 12px;
  line-height: 1.9;
  color: var(--n-550, #555);
}

/* ── 2026-10-27 改善 C-2: カード全体を詳細への道に・やり取りはボタンに・ページ送りは 44px ── */
.hist-card { position: relative; }
#main-content a.hist-open { display: block; color: inherit; text-decoration: none; }
#main-content a.hist-open:hover .hist-title,
#main-content a.hist-open:focus-visible .hist-title { color: var(--c-interaction-ink, #00796B); }
.hist-open-more { display: flex; align-items: center; justify-content: flex-end; gap: 2px; min-height: 44px; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--c-interaction-ink, #00796B); }
.hist-open-more svg { width: 18px; height: 18px; }
#main-content a.hist-msg { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; min-height: 44px; margin-top: 8px; padding: 0 12px; font-size: 13px; font-weight: 700; color: var(--c-interaction-ink, #00796B); text-decoration: none; background: var(--n-0, #fff); border: 1.5px solid var(--c-interaction, #00B19F); border-radius: 10px; }
.hist-section h2:focus { outline: none; }
.hist-section h2:focus-visible { outline: 2px solid var(--c-interaction, #00B19F); outline-offset: 2px; }
@media screen and (max-width: 480px) {
  .hist-pager .page-numbers { min-width: 44px; height: 44px; }
}

/* ── 詳細の画面(/history/detail/) ── */
.histd-card { padding: 16px; background: var(--n-0, #fff); border: 1px solid var(--n-250, #E0E0E0); border-radius: var(--radius-md, 8px); }
.histd-name { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.6; color: var(--c-slate, #273343); }
.histd-status { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 8px 0 0; }
.histd-status-label { font-size: 12px; color: var(--n-500, #666); }
.histd-status-value { font-size: 15px; font-weight: 700; color: var(--c-slate, #273343); }
.histd-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; counter-reset: none; }
.histd-step { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; background: var(--n-75, #F8F8F8); border-radius: var(--radius-sm, 6px); font-size: 12px; color: var(--n-500, #666); text-align: center; }
.histd-step-mark { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--n-0, #fff); border: 1.5px solid var(--n-300, #CCC); font-size: 13px; font-weight: 700; }
.histd-step.is-done { color: var(--c-interaction-ink, #00796B); }
.histd-step.is-done .histd-step-mark { color: var(--n-0, #fff); background: var(--c-interaction, #00B19F); border-color: var(--c-interaction, #00B19F); }
.histd-step.is-current { color: var(--c-slate, #273343); font-weight: 700; background: var(--c-tint-teal, #E5F7F5); }
/* いまの段の印は、手続きの段(flow.css)と同じ濃いティール */
.histd-step.is-current .histd-step-mark { color: var(--n-0, #fff); background: var(--c-interaction-ink, #00796b); border-color: var(--c-interaction-ink, #00796b); }
.histd-closed { margin: 12px 0 0; padding: 10px 12px; background: var(--n-75, #F8F8F8); border-radius: var(--radius-sm, 6px); font-size: 13px; color: var(--n-550, #555); }
.histd-nowrap { white-space: nowrap; }
.histd-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0 0; font-size: 13px; }
.histd-meta dt { color: var(--n-500, #666); }
.histd-meta dd { margin: 0; word-break: break-word; }
/* ご注文で使った保有ポイントを、キャンセルでお戻ししたとき(2026-10-31 保有ポイントの利用の改善 Phase 4) */
.histd-point-refunded { display: block; font-size: 13px; color: var(--n-500, #666); }
#main-content a.histd-action { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; min-height: 48px; margin-top: 12px; padding: 0 12px; font-weight: 700; color: var(--c-interaction-ink, #00796B); text-decoration: none; background: var(--n-0, #fff); border: 1.5px solid var(--c-interaction, #00B19F); border-radius: 10px; }
/* 発送のご案内(2026-10-30 商品購入の改善 Phase 5・B9。出荷完了のご注文だけ) */
.histd-ship { margin-top: 12px; padding: 16px; background: var(--n-0, #fff); border: 1px solid var(--n-250, #E0E0E0); border-left: 4px solid var(--c-interaction, #00B19F); border-radius: var(--radius-md, 8px); }
.histd-ship-title { margin: 0; font-size: 15px; font-weight: 700; color: var(--c-slate, #273343); }
.histd-ship .histd-meta { margin-top: 10px; align-items: center; }
.histd-ship-no { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
/* 通信回線切替の切り替えの状況(自動で切り替えたときだけ。2026-11-01 通信回線切替の改修 Phase 3)。発送のご案内と同じ枠 */
.histd-switch { margin-top: 12px; padding: 16px; background: var(--n-0, #fff); border: 1px solid var(--n-250, #E0E0E0); border-left: 4px solid var(--c-interaction, #00B19F); border-radius: var(--radius-md, 8px); font-size: 14px; line-height: 1.7; }
.histd-switch.is-failed { background: var(--c-danger-tint-weak, #ffefef); border-left-color: var(--c-danger-ink, #b91512); }
.histd-switch p { margin: 0; }
.histd-switch p + p { margin-top: 6px; }
.histd-switch .histd-switch-title { font-size: 15px; font-weight: 700; color: var(--c-slate, #273343); }
.histd-switch .histd-switch-at { font-size: 13px; color: var(--n-550, #555); }
#main-content button.histd-copy { display: inline-flex; align-items: center; min-height: 32px; margin-left: 8px; padding: 0 12px; font-size: 12px; font-weight: 700; color: var(--c-interaction-ink, #00796B); background: var(--n-0, #fff); border: 1px solid var(--c-interaction, #00B19F); border-radius: 999px; cursor: pointer; }
.histd-ship-note { margin: 6px 0 0; font-size: 12px; color: var(--n-500, #666); }
.histd-content { margin: 8px 0 16px; padding: 12px; background: var(--n-75, #F8F8F8); border-radius: var(--radius-sm, 6px); font-family: inherit; font-size: 14px; line-height: 1.9; white-space: pre-wrap; word-break: break-word; }
/* 本人確認書類の欄(2026-11-06 身分証管理 Phase 3)。発送のご案内と同じ枠。出し直しのお願いはホームの知らせ(.mh-alert)と同じ注意の色 */
.histd-identity { margin-top: 12px; padding: 16px; background: var(--n-0, #fff); border: 1px solid var(--n-250, #E0E0E0); border-left: 4px solid var(--c-interaction, #00B19F); border-radius: var(--radius-md, 8px); font-size: 14px; line-height: 1.7; }
.histd-identity.is-returned { border-left-color: #e39a2d; }
.histd-identity.is-cancelled { background: var(--n-75, #F8F8F8); border-left-color: var(--n-300, #CCC); }
.histd-identity > p { margin: 0; }
.histd-identity > * + * { margin-top: 8px; }
#main-content .histd-identity h2.histd-identity-title { margin: 0; padding: 0; font-size: 15px; font-weight: 700; line-height: 1.6; color: var(--c-slate, #273343); text-align: left; background: none; border: none; }
#main-content .histd-identity h2.histd-identity-title::before, #main-content .histd-identity h2.histd-identity-title::after { content: none; }
/* 理由の点は自分で描く(会員の画面のリセットで li の印が消えるため) */
.histd-identity-reasons { margin: 8px 0 0; padding: 10px 12px; background: #fff6e5; border-radius: var(--radius-sm, 6px); list-style: none; }
.histd-identity-reasons li { position: relative; padding-left: 16px; }
.histd-identity-reasons li::before { content: ""; position: absolute; left: 3px; top: calc(0.85em - 3px); width: 6px; height: 6px; border-radius: 50%; background: #e39a2d; }
.histd-identity-reasons li + li { margin-top: 2px; }
.histd-identity-note { padding: 10px 12px; background: var(--n-75, #F8F8F8); border-radius: var(--radius-sm, 6px); }
.histd-identity-note p { margin: 0; }
.histd-identity-note-label { font-size: 12px; font-weight: 700; color: var(--n-550, #555); }
.histd-identity-note-text { white-space: pre-wrap; word-break: break-word; }
.histd-identity-due { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.histd-identity-due strong { font-size: 16px; color: var(--c-slate, #273343); }
.histd-identity-warn { font-size: 13px; color: var(--c-danger-ink, #b91512); }
.histd-identity-at { font-size: 13px; color: var(--n-550, #555); }
.histd-identity-form { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--n-250, #E0E0E0); }
.histd-identity-form-title { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--c-slate, #273343); }
.histd-identity-error { margin: 12px 0 0; padding: 10px 12px; font-size: 13px; color: var(--c-danger-ink, #b91512); background: var(--c-danger-tint-weak, #ffefef); border-radius: var(--radius-sm, 6px); }
#main-content .histd-identity-form button.histd-identity-send { display: block; width: 100%; max-width: 360px; margin: 16px auto 0; }
/* 一覧の印(出し直しのお願いは注意の色) */
.hist-identity { margin: 4px 0 0; padding: 4px 10px; display: inline-block; font-size: 12px; font-weight: 700; color: var(--c-interaction-ink, #00796B); background: var(--c-tint-teal, #E5F7F5); border-radius: var(--radius-pill, 999px); }
.hist-identity.is-returned { color: #7a4300; background: #fff6e5; box-shadow: inset 0 0 0 1px #f5cf8a; }
