@charset "UTF-8";

/*
 * お客様の欄(お客様ID・表示中の回線)の PC の見た目(2026-10-18 利用者依頼「この部分も同じようにレイアウトUIUX改善」)
 *
 * 部品は components/member/Headline.tsx の .uc。押すと回線の一覧(LineSheet。スマホのヘッダーの札と同じ一覧)を
 * 画面の中央の窓で出す(窓の見た目は mobile-nav.css の後半)。
 * 以前は白い箱の「お客様ID：1001」と、幅100pxの選択欄(「10GBプラ」で切れる。プラン名だけなので同じプランの回線を見分けられない)。
 *   - ホーム: ロイヤリティの広告(左)の右に、縦のカード(お客様ID・コピー / 表示中の回線・切り替え)
 *   - 下層: パンくずの下に、1行で右寄せ(お客様ID・コピー | 表示中の回線の札)
 * 色・角丸・影はホームのカード(home-mobile.css)と同じ作法。
 * 【835px 以上だけ】834px 以下ではこの欄は出さない(mobile-nav.css。ヘッダーの回線の札とその他のシートにある)。
 * 【style.css は直さない】上から足すだけ(div.headline・div.user-data の古い指定の幅をここで外す)。
 * 【戻し方】app/(member)/layout.tsx の /css/account.css の1行を消すと、飾りの無い表示になる(部品は Headline.tsx)。
 */

@media screen and (min-width: 835px) {
  /* ---- 共通 ---- */
  div.headline div.user-data.uc {
    display: flex;
    margin: 0 0 0 auto;
    color: #273343;
  }
  .uc .uc-label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    color: #5f6b7a;
  }
  .uc .uc-id {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .uc .uc-id-value {
    font-family: "Roboto", sans-serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #273343;
  }
  .uc .uc-line {
    font-family: inherit;
    text-align: left;
    color: #273343;
    cursor: pointer;
    background: #fff;
    border: 1.5px solid #dfe5ec;
    border-radius: 14px;
    transition:
      border-color 0.15s ease,
      background-color 0.15s ease;
  }
  .uc .uc-line:hover {
    background: #f7fbfa;
    border-color: #00796b;
  }
  .uc .uc-tel {
    font-family: "Roboto", sans-serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  .uc .uc-plan {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
    color: #5f6b7a;
  }
  .uc .uc-action {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    color: #00796b;
  }
  .uc .uc-action svg {
    width: 16px;
    height: 16px;
  }

  /* ---- ホーム: 広告の右に縦のカード ---- */
  div.headline.is-top {
    align-items: stretch;
    gap: 16px;
  }
  div.headline.is-top a.loyalty-link {
    flex: none;
    width: 400px;
  }
  div.headline.is-top div.user-data.uc {
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    width: auto;
    min-width: 0;
    padding: 14px;
    background: #fff;
    border: 1px solid #e6ebf1;
    border-radius: 18px;
    box-shadow: 0 10px 28px -22px rgba(39, 51, 67, 0.55);
  }
  .is-top .uc .uc-id {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "label label"
      "value copy";
    row-gap: 2px;
  }
  .is-top .uc .uc-id .uc-label {
    grid-area: label;
  }
  .is-top .uc .uc-id-value {
    grid-area: value;
  }
  .is-top .uc .uc-copy {
    grid-area: copy;
  }
  .is-top .uc .uc-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "label label"
      "tel tel"
      "plan action";
    row-gap: 2px;
    width: 100%;
    padding: 10px 12px;
  }
  .is-top .uc .uc-line .uc-label {
    grid-area: label;
  }
  .is-top .uc .uc-line-main {
    display: contents;
  }
  .is-top .uc .uc-tel {
    grid-area: tel;
  }
  /* プラン名は長いこともあるので、切らずに折り返す(以前の選択欄は「10GBプラ」で切れていた) */
  .is-top .uc .uc-plan {
    grid-area: plan;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .is-top .uc .uc-action {
    grid-area: action;
    align-self: end;
    justify-self: end;
  }

  /* ---- 下層: パンくずの下に1行で右寄せ ---- */
  div.headline.is-lower {
    justify-content: flex-end;
  }
  div.headline.is-lower div.user-data.uc {
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 16px;
    width: auto;
  }
  .is-lower .uc .uc-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 6px 14px;
    border-radius: 999px;
  }
  /* 「表示中の回線」の文字は読み上げだけ(1行に収めるため。札の形で伝わる) */
  .is-lower .uc .uc-line .uc-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .is-lower .uc .uc-line-main {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .uc .uc-line {
    transition: none;
  }
}
