/* マイページ（/account 以下の全画面）。body.buy.acct。外枠・書体・色・ボタン・入力欄は site.css と buy.css のものを使い、
   ここには「マイページの中身の並べ方」（app.css の .cust の規則から移したもの）だけを置く。
   クラス名は site.css・buy.css と重ならないものにする（.plans / .confirm / .actions は申し込みの画面で使っているので、
   マイページ側は .acct-plans / .acct-confirm / .acct-actions に付け替えた） */

/* ---- 共通 ---- */
.acct .muted { color: var(--ink-soft); }
.acct .small { font-size: 12.5px; }
.acct .inline { display: inline-block; margin: 0; }
.acct .back, .acct .crumb { margin: 0 0 22px; font-size: 13.5px; }
.acct .back a, .acct .crumb a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.acct .buy-head p.muted { margin-top: -6px; }
.acct .buy-notice-warn { background: rgba(223, 164, 60, .16); }

/* 上の帯の「ログアウト」（今のフォームの送信のまま。見た目は帯の中のリンクと同じ字） */
.acct .gnav { align-items: center; }
.acct .gnav form { margin: 0; display: flex; }
.acct .gnav button { font: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); background: none; border: 0; padding: 0; cursor: pointer; }
.acct .gnav button:hover { color: var(--teal-deep); }

/* 小さいボタン・濃い色のボタン（ボタンの形は site.css の .btn のまま、大きさと色だけ） */
.acct .btn-sm { padding: 11px 20px; font-size: 13px; }
.acct .btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.acct .btn-ink:hover { background: #2B3A34; border-color: #2B3A34; transform: translateY(-2px); }

/* 状態の札 */
.acct .badge { display: inline-flex; padding: 2px 11px; border-radius: 999px; font-family: var(--font-head); font-size: 12px; font-weight: 700; line-height: 1.7; letter-spacing: .02em; }
.acct .badge-new { background: #E3F6EC; color: #0B8A43; }
.acct .badge-info { background: var(--teal-pale); color: var(--teal-deep); }
.acct .badge-warn { background: rgba(223, 164, 60, .16); color: #8A6118; }
.acct .badge-sold { background: #EEF2F0; color: #5F6B66; }
.acct .badge-danger { background: #FBEBE9; color: #A8322B; }

.acct .keybox { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px; letter-spacing: .06em; color: var(--ink);
  background: var(--bg-gray); border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px; display: inline-block; line-height: 1.7; }
.acct .num-f { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* 白い枠（申し込みの画面の .panel と同じ角丸24px・影） */
.acct .set, .acct .acct-confirm, .acct .plan-card { background: #fff; border-radius: 24px; box-shadow: var(--shadow-card); }
.acct .set, .acct .set-alert, .acct .set-help, .acct .pay-failed, .acct .acct-confirm { max-width: 880px; }

/* ---- ログイン・ログインリンクを開いた画面（中央寄りの白い枠） ---- */
.acct .acct-center { max-width: 520px; margin: 0 auto; }
.acct .acct-center h1 { font-size: 30px; margin-bottom: 18px; }
.acct .acct-center p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 24px; }
.acct .acct-center .kicker { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 18px; }

/* ---- 設定の一覧の形（項目 ｜ 今の内容 ｜ 操作） ---- */
.acct .set { padding: 10px 40px 14px; margin-bottom: 28px; }
.acct .set-h { font-size: 18px; margin: 0; padding: 24px 0 18px; border-bottom: 1px solid var(--line); }
.acct .set-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 6px 24px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.acct .set-row:last-child { border-bottom: none; }
.acct .set-k { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--ink); padding-top: 2px; line-height: 1.7; }
.acct .set-k-sub { display: block; font-family: var(--font); font-weight: 400; color: var(--ink-soft); font-size: 12.5px; margin-top: 2px; }
.acct .set-v { min-width: 0; line-height: 1.8; }
.acct .set-v p { margin: 0; }
.acct .set-wide { grid-column: 2 / 4; }
.acct .set-main { font-family: var(--font-head); font-size: 15.5px; font-weight: 700; color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.acct .set-plain { font-weight: 500; }
.acct .set-v .set-sub { font-size: 13px; color: var(--ink-soft); margin-top: 4px; line-height: 1.85; }
.acct .set-v .set-note { font-size: 13px; color: var(--ink); background: var(--bg-gray); border-radius: 12px; padding: 10px 14px; margin-top: 10px; line-height: 1.85; }
.acct .set-note a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.acct .set-a { display: flex; justify-content: flex-end; align-items: flex-start; min-width: 0; }
.acct .set-a form { margin: 0; }
.acct .set-link { font-size: 13px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; padding-top: 3px; }
.acct .set-link:hover { color: var(--teal-deep); }
.acct .set-alert { background: rgba(223, 164, 60, .16); border-radius: 14px; padding: 14px 18px; margin-bottom: 24px; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.85; }
.acct .set-alert p { margin: 0; }
.acct .pay-failed { margin: 0 0 24px; }
.acct .set-help { font-size: 13px; color: var(--ink-soft); margin: 0 4px; line-height: 1.9; }
.acct .set-help a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.acct .set-sub .nw { white-space: nowrap; }
.acct .set-sub .sep { display: none; }
.acct .set-v .set-sub:has(.nw) { display: flex; flex-wrap: wrap; gap: 0 20px; }

/* プロダクトキーの「表示する」（JavaScript なしの details） */
.acct .reveal { margin: 0; }
.acct .reveal summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.acct .reveal summary::-webkit-details-marker { display: none; }
.acct .reveal .reveal-t { font-size: 13px; color: var(--teal-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.acct .reveal[open] .reveal-t { display: none; }
.acct .reveal[open] summary .keybox { display: none; }
.acct .reveal p { margin: 0; }
.acct .set .keybox { padding: 8px 14px; font-size: 15px; }

/* 登録しているパソコン */
.acct .devices { list-style: none; margin: 0 0 6px; padding: 0; }
.acct .devices li { border: none; padding: 0 0 10px; }
.acct .dev-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; position: relative; }
.acct .dev-name { font-weight: 700; color: var(--ink); }
.acct .dev-remove { text-align: right; }
.acct .dev-remove > summary { display: inline-block; font-size: 13px; padding: 7px 16px; border: 1.5px solid #C9D6D2; border-radius: 999px; color: var(--ink); list-style: none; cursor: pointer; line-height: 1.6; background: #fff; }
.acct .dev-remove > summary::-webkit-details-marker { display: none; }
.acct .dev-remove > summary:hover { border-color: var(--teal); color: var(--teal-deep); }
.acct .dev-remove[open] > summary { border-color: var(--teal); color: var(--teal-deep); }
.acct .dev-remove-body { flex-basis: 100%; text-align: left; background: var(--bg-gray); border-radius: 14px; padding: 14px 18px; margin-top: 10px; font-size: 13.5px; line-height: 1.9; }
.acct .dev-remove-body p { margin: 0 0 10px; }
.acct .dev-remove-body form { margin: 0; }
.acct .dev-row .dev-remove[open] { flex-basis: 100%; text-align: left; }
.acct .dev-row .dev-remove[open] > summary { float: right; }
.acct .dev-row .dev-remove[open] .dev-remove-body { clear: both; }

/* ---- ご契約の一覧 ---- */
.acct .table-wrap { overflow-x: auto; }
.acct .clist { width: 100%; border-collapse: collapse; }
.acct .clist th { text-align: left; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); padding: 14px 12px 12px 0; border-bottom: 1px solid var(--line); white-space: nowrap; line-height: 1.7; }
.acct .clist td { padding: 18px 12px 18px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); vertical-align: middle; white-space: nowrap; line-height: 1.8; }
.acct .clist tr:last-child td { border-bottom: none; }
.acct .clist-name { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--ink); }
.acct .clist-name:hover { color: var(--teal-deep); }
.acct .clist-key { font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: var(--ink-soft); }
.acct .clist-go { text-align: right; padding-right: 0 !important; }
.acct .list-empty { padding: 22px 0; margin: 0; color: var(--ink-soft); }

/* ---- プランの変更（プランを選ぶ） ---- */
.acct .acct-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin: 0 0 28px; }
.acct .plan-card { display: flex; flex-direction: column; padding: 32px 30px 30px; }
.acct .plan-card.is-current { box-shadow: 0 0 0 3px var(--teal), 0 30px 70px -24px rgba(8, 33, 29, .28); }
.acct .plan-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; }
.acct .plan-card-top .badge { white-space: nowrap; }
.acct .plan-card-top h2 { margin: 0; font-size: 22px; }
.acct .plan-card-price { font-family: var(--font-head); font-weight: 900; font-size: 18px; margin: 12px 0 6px; color: var(--ink); }
.acct .plan-card-price .num-f { font-size: 32px; font-weight: 700; }
.acct .plan-card-price .unit { font-size: 12.5px; font-weight: 500; color: var(--ink-soft); margin-left: 4px; }
.acct .plan-list { padding-left: 18px; margin: 10px 0 20px; flex: 1; font-size: 14px; line-height: 1.9; word-break: auto-phrase; }
.acct .plan-list li { margin-bottom: 4px; }
.acct .plan-card .btn { align-self: flex-start; }
.acct .plan-card-note { margin: 10px 0 0; line-height: 1.85; }
.acct .acct-plans + p { max-width: 880px; font-size: 13px; line-height: 1.9; }

/* ---- 確認の画面（プラン変更・解約） ---- */
.acct .acct-confirm { padding: 40px 40px 36px; font-size: 14.5px; line-height: 1.95; }
.acct .acct-confirm p { margin: 0 0 .8em; }
.acct .confirm-lead { font-family: var(--font-head); font-weight: 900; font-size: 19px; color: var(--ink); margin: 0 0 .6em; line-height: 1.6; }
.acct .compare { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: stretch; margin-bottom: 26px; }
.acct .compare-col { background: var(--bg-gray); border-radius: 16px; padding: 20px 22px; }
.acct .compare-col.is-new { background: var(--teal-pale); box-shadow: inset 0 0 0 1.5px var(--teal); }
.acct .compare-col .kicker { margin-bottom: 8px; }
.acct .compare-name { font-family: var(--font-head); font-weight: 900; font-size: 24px; color: var(--ink); margin: 0 0 10px; line-height: 1.5; }
.acct dl.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 14px; margin: 0; }
.acct dl.kv dt { color: var(--ink-soft); font-size: 13px; }
.acct dl.kv dd { margin: 0; color: var(--ink); font-size: 14.5px; }
.acct .compare-arrow { align-self: center; font-size: 22px; color: var(--teal); }
.acct .when { border-top: 1px solid var(--line); padding-top: 22px; margin-bottom: 26px; }
.acct .when p:last-child { margin-bottom: 0; }
.acct .money { font-family: var(--font-num); font-size: 21px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.acct .confirm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.acct .acct-confirm > .confirm-actions { margin-top: 8px; }

/* ---- ご登録情報の変更 ---- */
.acct .set-form { padding: 22px 0 8px; max-width: 560px; }
.acct .plain-v { margin: 0; font-size: 15.5px; color: var(--ink); }
.acct .acct-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.acct .f-hint a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.acct .acct-center .buy-notice { margin: 0 0 18px; }

/* ---- 狭い画面 ---- */
@media (max-width: 960px) {
  .acct .acct-confirm { padding: 30px 24px; }
}
@media (max-width: 640px) {
  .acct .set { padding: 4px 22px 8px; }
  .acct .set-h { padding: 20px 0 14px; }
  .acct .set-row { grid-template-columns: 1fr; gap: 6px; }
  .acct .set-wide { grid-column: auto; }
  .acct .set-a { justify-content: flex-start; margin-top: 6px; }
  .acct .set-a:empty { display: none; }
  .acct .plan-card { padding: 26px 24px; }
  .acct .compare { grid-template-columns: 1fr; }
  .acct .compare-arrow { transform: rotate(90deg); justify-self: center; }
  .acct dl.kv { grid-template-columns: 1fr; gap: 0 14px; }
  .acct dl.kv dd { margin-bottom: 8px; }
  .acct .confirm-actions .btn { flex: 1 1 100%; }
  .acct .clist thead { display: none; }
  .acct .clist, .acct .clist tbody, .acct .clist tr, .acct .clist td { display: block; }
  .acct .clist tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .acct .clist tr:last-child { border-bottom: none; }
  .acct .clist td { border: none; padding: 3px 0; white-space: normal; display: flex; gap: 12px; }
  .acct .clist td[data-k]::before { content: attr(data-k); flex: 0 0 7.5em; font-size: 12.5px; color: var(--ink-soft); }
  .acct .clist td:first-child::before { display: none; }
  .acct .clist-go { text-align: left; padding-top: 10px !important; }
  .acct .gnav { gap: 20px; }
}
