@charset "UTF-8";

/*
 * 右上のメニュー(ハンバーガー)(2026-11-07 ハンバーガーメニュー Phase 1)
 *
 * 部品は components/member/MemberMenu.tsx(開閉ボタン #nav-toggle・パネル div#nav.mnav・外側 .mnav-backdrop)。
 * 出る場所: PC・タブレットの横向き(835px 以上)/ログイン前の画面/スマホで下のナビを出さない画面。
 *   スマホのふだんの画面では mobile-nav.css が隠す(body:has(.mtab) #mobile-head, #nav)。
 * 【古い指定は当てない】style.css の nav#nav・ul.menu の指定は、パネルを div にしたので当たらない。
 *   開閉ボタン(#nav-toggle)だけは古い指定(大きさ・三本線・開くと×)を使い、ボタンの既定を外して文字を足す。
 * 【見た目】スマホのシート(mobile-nav.css の .msheet-*)と同じ作法(行・絵の箱・分類の見出し・お手続きの絵のマス目)。
 *   PC(1200px 以上)は幅を広げて3列(Phase 2。お手続きは分類を2列に流した行)。それより狭い画面は1列の引き出し。
 * 【戻し方】app/(member)/layout.tsx の /css/member-menu.css の1行を消すと、パネルが素の表示になる。
 */

/* ---- 開閉ボタン(本物のボタン。三本線の下に「メニュー」「閉じる」) ---- */
#navigation #nav-toggle {
  margin: 0;
  padding: 0;
  font: inherit;
  color: #273343;
  background: transparent;
  border-top: 0;
  border-bottom: 0;
  border-radius: 0;
  appearance: none;
}
#navigation #nav-toggle > div {
  top: 14px;
}
#navigation #nav-toggle .mnav-toggle-text {
  position: absolute;
  right: 0;
  bottom: 9px;
  left: 0;
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
  color: #273343;
}
/* 新着・未読・状況の変化があるときの丸(閉じている間だけ。Phase 3)。span にしない(古い指定で線の形になる) */
#navigation #nav-toggle .mnav-toggle-dot {
  position: absolute;
  top: 10px;
  right: 12px;
  box-sizing: content-box;
  width: 10px;
  height: 10px;
  background: #cd2b31;
  border: 2px solid #fff;
  border-radius: 50%;
}

/* ---- パネル(右から滑り込む。ヘッダーの下から画面の下まで=高さは計算しない) ---- */
#navigation .mnav {
  position: fixed;
  top: 71px;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 56px));
  color: #273343;
  background: #fff;
  border-left: 1px solid #e0e0e0;
  box-shadow: -16px 0 32px -16px rgba(15, 23, 42, 0.35);
  outline: none;
  visibility: hidden;
  transform: translateX(100%);
  transition:
    transform 0.22s ease,
    visibility 0s linear 0.22s;
}
#navigation.open .mnav {
  visibility: visible;
  transform: none;
  transition: transform 0.22s ease;
}
.mnav-scroll {
  flex: 1;
  min-height: 0;
  padding-bottom: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* 外側を暗くする(押すと閉じる)。開いている間は、ヘッダーとメニューをこの面と固定の帯
   (申込の「確認へ進む」850・下のナビ 900)より上に出す */
.mnav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.45);
  animation: mnav-fade 0.22s ease-out;
}
@keyframes mnav-fade {
  from {
    opacity: 0;
  }
}
body.mnav-open #wrapper > header {
  z-index: 1001;
}

/* ---- ロイヤリティの広告(大きいまま。利用者決定 2026-11-07) ---- */
.mnav-bnr {
  padding: 12px 12px 0;
}
.mnav-bnr a.loyalty-link {
  display: block;
  overflow: hidden;
  border-radius: 12px;
}
.mnav-bnr a.loyalty-link:hover {
  opacity: 0.85;
}
.mnav-bnr img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- お客様の欄 ---- */
.mnav-account {
  margin: 10px 12px 0;
  padding: 12px 14px;
  background: #f2f7ff;
  border-radius: 14px;
}
.mnav .mnav-account-id {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #5f6b7a;
}
.mnav .mnav-account-id b {
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #273343;
}
.mnav .mnav-account-id .copy-btn {
  margin-left: auto;
}
.mnav .mnav-account-line {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
}
.mnav-account-line div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mnav .mnav-account-line dt {
  font-weight: 400;
  color: #5f6b7a;
}
.mnav .mnav-account-line dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0;
  font-weight: 700;
}
/* 表示中の回線の「切り替え」(複数の回線をお持ちの会員だけ。Phase 3) */
.mnav .mnav-line-switch {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0;
  padding: 0 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #00796b;
  cursor: pointer;
  background: #fff;
  border: 1.5px solid #bfe3dd;
  border-radius: 999px;
}
.mnav .mnav-line-switch:hover {
  background: #eef6f5;
}

/* ---- よく使う3つ(ホーム・申込状況・お問い合わせ) ---- */
.mnav .mnav-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 12px 0;
  padding: 0;
  list-style: none;
}
.mnav-quick li {
  margin: 0;
  padding: 0;
}
.mnav-quick-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  min-height: 64px;
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: #00796b;
  text-decoration: none;
  background: #eef6f5;
  border-radius: 14px;
}
.mnav-quick-item svg {
  width: 22px;
  height: 22px;
}
.mnav-quick-item:hover {
  background: #e0f0ee;
}
.mnav-quick-item[aria-current="page"] {
  color: #fff;
  background: #00796b;
}
/* 状況が変わったお申込みがあるとき(申込状況。スマホの下のナビと同じ赤い丸。Phase 3) */
.mnav-quick-dot {
  position: absolute;
  top: 7px;
  right: 10px;
  width: 9px;
  height: 9px;
  background: #cd2b31;
  border: 2px solid #fff;
  border-radius: 50%;
}

/* ---- 押すと電話がかかる番号と受付時間(番号は lib/member/support.ts。Phase 3) ---- */
.mnav-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin: 10px 12px 0;
  padding: 0 12px;
  font-size: 13px;
  color: #273343;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e6ebf1;
  border-radius: 12px;
}
.mnav-tel svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: #00796b;
}
.mnav-tel b {
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #00796b;
}
.mnav-tel-hours {
  font-size: 12px;
  color: #5f6b7a;
}
.mnav-tel:hover {
  background: #f6f8fb;
}

/* ---- メニューから探す(Phase 5。1列ではいちばん上・PC は右の列のいちばん上) ---- */
.mnav-search {
  position: relative;
  display: flex;
  align-items: center;
  margin: 12px 12px 0;
}
.mnav-search-box {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  cursor: text;
  background: #f6f8fb;
  border: 1.5px solid #dfe5ec;
  border-radius: 12px;
}
/* 打っている間は枠の色で知らせる(入力欄そのものの枠は消す) */
.mnav-search-box:focus-within {
  background: #fff;
  border-color: #00796b;
}
.mnav-search-box svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: #5f6b7a;
}
.mnav .mnav-search-box input {
  flex: 1;
  min-width: 0;
  height: 40px;
  margin: 0;
  padding: 0 30px 0 0;
  /* 16px より小さいと、iPhone は打つときに画面を拡大してしまう */
  font-family: inherit;
  font-size: 16px;
  color: #273343;
  background: transparent;
  border: 0;
  outline: none;
  box-shadow: none;
  appearance: none;
}
.mnav-search-box input::-webkit-search-cancel-button {
  display: none;
  -webkit-appearance: none;
}
.mnav-search-box input::placeholder {
  font-size: 14px;
  /* 欄の地(#f6f8fb)に対して 4.5:1 以上(#7a8594 は 3.5:1 で薄すぎた) */
  color: #5f6b7a;
  opacity: 1;
}
.mnav .mnav-search-clear {
  position: absolute;
  right: 6px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  color: #5f6b7a;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 50%;
}
.mnav-search-clear svg {
  width: 18px;
  height: 18px;
}
/* 探した結果(列の代わりに出す) */
.mnav .mnav-results-head {
  margin: 14px 16px 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: #5f6b7a;
  /* 折るのは言葉の切れ目(「」・空白・<wbr>)だけ。「…見つかりませんでし/た」と折れていた(2026-11-08 手順書を作るときに見つけた)。
     長い言葉は、はみ出さないように途中でも折る */
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.mnav-results {
  margin: 0 12px;
}
.mnav .mnav-noresult {
  margin: 0 4px;
  font-size: 14px;
  line-height: 1.7;
  /* 読点のあとで折る(「…お尋/ねください」と折れないように) */
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.mnav-noresult a {
  font-weight: 700;
  color: #00796b;
}
/* どこにある入口か(探した結果) */
.mnav-row-note {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: #5f6b7a;
}

/* ---- 分類(見出しと行の一覧) ---- */
.mnav-section {
  margin: 18px 12px 0;
}
/* 見出しは古い CSS(h2 の上下の線・余白、h3 の飾り)を打ち消す */
.mnav .mnav-title {
  margin: 0 4px 8px;
  padding: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: left;
  color: #5f6b7a;
  background: none;
  border: 0;
}
.mnav .mnav-title::before,
.mnav .mnav-title::after,
.mnav .mnav-group-title::before,
.mnav .mnav-group-title::after {
  display: none;
}
.mnav .mnav-rows {
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid #e6ebf1;
  border-radius: 14px;
}
.mnav-rows li {
  margin: 0;
  padding: 0;
}
.mnav-rows li + li {
  border-top: 1px solid #edf0f4;
}
.mnav-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: #273343;
  text-decoration: none;
  background: #fff;
}
.mnav-row:hover {
  background: #f6f8fb;
}
.mnav-row[aria-current="page"] {
  color: #00796b;
  background: #f2faf8;
}
.mnav-row-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #00796b;
  background: #eef6f5;
  border-radius: 10px;
}
.mnav-row-icon svg {
  width: 18px;
  height: 18px;
}
.mnav-row-icon img {
  width: 22px;
  height: 22px;
}
/* 名前は決めた所で折る(MenuLabel)。収まらないときだけ言葉の途中で折る */
.mnav-row-label {
  flex: 1;
  min-width: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.mnav-row-go {
  flex: none;
  width: 16px;
  height: 16px;
  color: #9aa4b2;
}
.mnav-badge {
  flex: none;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: #cd2b31;
  border-radius: 999px;
}

/* ---- お手続き(分類ごとに絵のマス目。スマホの「お手続き」シートと同じ) ---- */
.mnav .mnav-group {
  margin: 0;
}
.mnav .mnav-group + .mnav-group {
  margin-top: 12px;
}
.mnav .mnav-group-title {
  margin: 0 4px 6px;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  color: #273343;
  background: none;
  border: 0;
}
.mnav .mnav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mnav-grid li {
  margin: 0;
  padding: 0;
}
.mnav-proc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  min-height: 88px;
  padding: 10px 2px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  /* 8文字の名前(データ通信量追加)を1行に収める(字の間隔が開くと最後の1字だけが折れる) */
  letter-spacing: 0;
  text-align: center;
  color: #273343;
  text-decoration: none;
  background: #f6f8fb;
  border-radius: 14px;
}
.mnav-proc:hover {
  background: #eef2f6;
}
.mnav-proc[aria-current="page"] {
  background: #e6f5f3;
  box-shadow: inset 0 0 0 2px #00796b;
}
.mnav-proc-icon img {
  display: block;
  width: 36px;
  height: 36px;
}
/* 名前は決めた所で折り返す(MenuLabel.tsx)。収まらないときだけ言葉の途中で折る */
.mnav-proc-label {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* いまの画面を含む分類の見出し(色と小さな丸。読み上げは入口の aria-current が伝える) */
.mnav .mnav-section.is-current > .mnav-title,
.mnav .mnav-group.is-current > .mnav-group-title {
  color: #00796b;
}
.mnav-here {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  vertical-align: 2px;
  background: #00796b;
  border-radius: 50%;
}

/* ---- ログアウト ---- */
.mnav-foot {
  margin: 20px 12px 0;
}
.mnav .mnav-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  margin: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #273343;
  cursor: pointer;
  background: #fff;
  border: 1.5px solid #cfd8e0;
  border-radius: 14px;
}
.mnav-logout svg {
  width: 18px;
  height: 18px;
}
.mnav .mnav-logout:hover {
  background: #f6f8fb;
}

/* フォーカスの枠はサイト全体と同じ(a11y.css のピンク)。角の丸い一覧の中の行だけは、
   外側に描くと一覧の縁で切れて見えないので、内側に描く */
.mnav .mnav-row:focus-visible {
  outline: 2px solid #e5006e;
  outline-offset: -4px;
  box-shadow: none;
}

/* 画面には出さず、読み上げだけ */
.mnav-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- PC(1200px 以上): 幅を広げて3列にし、ほぼ1画面に収める(利用者決定 2026-11-07) ----
   左=広告・お客様の欄・よく使う3つ・ご契約・お知らせ/真ん中=お手続き(分類を2列に流し、小さな絵と名前の行)/
   右=確認・履歴・設定・ご案内・ログアウト。1200px 未満(タブレット・スマホ)は、この順に1列の引き出し */
@media screen and (min-width: 1200px) {
  #navigation .mnav.is-member {
    width: min(1140px, calc(100vw - 60px));
  }
  .mnav .mnav-cols {
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: 300px minmax(0, 1fr) 300px;
    align-items: start;
    gap: 0 28px;
    padding: 16px 24px 0;
  }
  /* 探す欄は右の列のいちばん上(利用者決定)。左と真ん中の列は上から下まで */
  .mnav-cols > .mnav-search {
    grid-row: 1;
    grid-column: 3;
    margin: 0 0 12px;
  }
  .mnav-cols > .mnav-col-me {
    grid-row: 1 / span 2;
    grid-column: 1;
  }
  .mnav-cols > .mnav-col-procs {
    grid-row: 1 / span 2;
    grid-column: 2;
  }
  .mnav-cols > .mnav-col-more {
    grid-row: 2;
    grid-column: 3;
  }
  /* 探しているとき: 探す欄は右上のまま(打っている途中に動かない)。結果は3つの列にまたがって欄の下に */
  .mnav-cols > .mnav-results-head {
    grid-row: 1;
    grid-column: 1 / span 2;
    align-self: center;
    margin: 0 0 12px;
  }
  .mnav-cols > .mnav-results {
    grid-row: 2;
    grid-column: 1 / -1;
    margin: 0;
  }
  .mnav-results .mnav-rows {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    border: 0;
    border-radius: 0;
  }
  .mnav-results .mnav-rows li,
  .mnav-results .mnav-rows li + li {
    overflow: hidden;
    border: 1px solid #e6ebf1;
    border-radius: 12px;
  }
  /* 最近使った手続き: 真ん中の列のいちばん上に小さな札で(1画面に収める) */
  .mnav-cols .mnav-recent {
    margin: 0 0 14px;
  }
  .mnav-cols .mnav-recent .mnav-rows {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    overflow: visible;
    border: 0;
    border-radius: 0;
  }
  .mnav-cols .mnav-recent .mnav-rows li + li {
    border-top: 0;
  }
  .mnav-cols .mnav-recent .mnav-row {
    gap: 6px;
    min-height: 34px;
    padding: 0 12px 0 6px;
    font-size: 13px;
    border: 1px solid #e6ebf1;
    border-radius: 999px;
  }
  .mnav-cols .mnav-recent .mnav-row-icon {
    width: 24px;
    height: 24px;
    background: none;
  }
  .mnav-cols .mnav-recent .mnav-row-icon img {
    width: 20px;
    height: 20px;
  }
  .mnav-cols .mnav-recent .mnav-row-label {
    flex: none;
  }
  .mnav-cols .mnav-recent .mnav-row-go {
    display: none;
  }
  /* 1列のときの左右の 12px は、列のすき間が受け持つ */
  .mnav-cols .mnav-bnr {
    padding: 0;
  }
  .mnav-cols .mnav-account,
  .mnav-cols .mnav-quick,
  .mnav-cols .mnav-tel,
  .mnav-cols .mnav-section,
  .mnav-cols .mnav-foot {
    margin-right: 0;
    margin-left: 0;
  }
  /* 1画面に収めるため、3列のときは間を少し詰める(電話と回線の切り替えを足した分。Phase 3) */
  #navigation .mnav.is-member .mnav-scroll {
    padding-bottom: 12px;
  }
  .mnav-cols .mnav-account {
    padding: 10px 14px;
  }
  .mnav-cols .mnav-quick-item {
    min-height: 58px;
  }
  .mnav-cols .mnav-section {
    margin-top: 12px;
  }
  .mnav-cols .mnav-title {
    margin-bottom: 6px;
  }
  .mnav-cols .mnav-col > .mnav-section:first-child,
  .mnav-cols .mnav-col-procs .mnav-section {
    margin-top: 0;
  }
  .mnav-cols .mnav-foot {
    margin-top: 16px;
  }
  /* 右の列の長い名前(Myサンシスコンのログイン方法)も1行に収める */
  .mnav-cols .mnav-row {
    gap: 10px;
    min-height: 40px;
    padding: 0 12px;
    font-size: 13.5px;
  }

  /* お手続き: 分類を2列に流し、行(小さな絵と名前)で並べる */
  .mnav .mnav-groups {
    column-gap: 20px;
    columns: 2;
  }
  .mnav .mnav-group,
  .mnav .mnav-group + .mnav-group {
    margin: 0 0 14px;
    break-inside: avoid;
  }
  .mnav .mnav-grid {
    display: block;
  }
  .mnav-grid li + li {
    margin-top: 2px;
  }
  .mnav-proc {
    flex-direction: row;
    gap: 10px;
    min-height: 40px;
    padding: 6px 10px;
    font-size: 13.5px;
    line-height: 1.4;
    text-align: left;
    background: none;
    border-radius: 10px;
  }
  .mnav-proc:hover {
    background: #f6f8fb;
  }
  .mnav-proc-icon img {
    width: 26px;
    height: 26px;
  }
}

/* ---- スマホ幅(ログイン前の画面・下のナビを出さない画面) ---- */
@media screen and (max-width: 834px) {
  #navigation .mnav {
    top: 51px;
  }
  /* 50px の四角に三本線と文字を収める(線の形はそのまま縮める) */
  #navigation #nav-toggle > div {
    top: 7px;
    transform: scale(0.8);
    transform-origin: 50% 0;
  }
  #navigation #nav-toggle .mnav-toggle-text {
    bottom: 5px;
    letter-spacing: 0;
  }
  #navigation #nav-toggle .mnav-toggle-dot {
    top: 4px;
    right: 6px;
  }
  /* 指で押す画面では、切り替えと電話も押しやすい高さに */
  .mnav .mnav-line-switch {
    min-height: 36px;
    padding: 0 14px;
  }
  .mnav-tel {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #navigation .mnav,
  #navigation.open .mnav {
    transition: none;
  }
  .mnav-backdrop {
    animation: none;
  }
}

@media print {
  #navigation .mnav,
  .mnav-backdrop {
    display: none;
  }
}
