@charset "UTF-8";

/*
 * スマホ向け改善 第3段: ホーム(B1〜B4・D1。2026-10-18)
 *
 * 部品は app/(member)/page.tsx(main.mh の下だけ)。利用者はスマホだけなので、PC でも同じ1列の並び(幅 640px まで)。
 * 見出しとカードはロイヤリティ側の新しい作法(角丸・やわらかい影・アクセントの見出し)にそろえる(利用者決定)。
 * 古い CSS(style.css)の h2 の上下の線・h3 の紺の帯・前後の余白・li の中の a の下線は、ここで打ち消す。
 * 手続きの格子は今の .mypage-menu の見た目(やわらかい浮き・触れると持ち上がる)をそのまま使う。
 * 【戻し方】app/(member)/layout.tsx の /css/home-mobile.css の1行を消すと、新しい並びに飾りの無い表示になる
 *   (並びを元に戻すのは page.tsx)。
 */

main.mh {
  padding-bottom: 8px;
  background: #f4f6f9;
}
.mh .mh-body {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: 12px 15px 8px;
}

/* 大切なお知らせ(無ければ未読の件数) */
.mh .mh-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(610px, calc(100% - 30px));
  margin: 12px auto 0;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
  color: #7a4300;
  text-decoration: none;
  background: #fff6e5;
  border: 1px solid #f5cf8a;
  border-radius: 14px;
}
.mh .mh-alert.is-info {
  color: #0b4f8a;
  background: #eef5fc;
  border-color: #c9def3;
}
/* お申込み・ご注文の状況が変わったとき(2026-10-27)。手続きの画面と同じ緑 */
.mh .mh-alert.is-status {
  color: var(--c-interaction-ink, #00796b);
  background: var(--c-tint-teal, #e5f7f5);
  border-color: #a7ddd6;
}
.mh .mh-alert.is-status .mh-alert-label {
  background: var(--c-interaction-ink, #00796b);
}
.mh .mh-alert svg {
  flex: none;
  width: 18px;
  height: 18px;
}
.mh .mh-alert-text {
  display: -webkit-box;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.mh .mh-alert-label {
  margin-right: 6px;
  padding: 0 6px;
  font-size: 12px;
  color: #fff;
  background: #9a5300;
  border-radius: 4px;
}

/* お支払いのご案内(未納の間だけ・いちばん上。2026-11-04 請求メール Phase 6-1) */
.mh .mh-pay {
  width: min(610px, calc(100% - 30px));
  margin: 12px auto 0;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #7a1f1f;
  background: #fdeeee;
  border: 1px solid #f2c4c4;
  border-radius: 10px;
}
.mh .mh-pay p {
  margin: 0;
}
.mh .mh-pay-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}
.mh .mh-pay-title svg {
  flex: none;
  width: 18px;
  height: 18px;
}
.mh .mh-pay-list {
  margin: 8px 0;
  padding: 0;
  list-style: none;
}
.mh .mh-pay-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 8px;
  padding: 6px 0;
  border-top: 1px dashed #f2c4c4;
}
.mh .mh-pay-amount {
  font-weight: 700;
  white-space: nowrap;
}
.mh .mh-pay .mh-pay-note {
  font-size: 12.5px;
}
/* 未納のご案内(解約した会員。Phase 8-1)の合計。数字は途中で折り返さない */
.mh .mh-pay .mh-pay-total {
  margin: 0 0 8px;
  font-weight: 700;
  word-break: normal;
  overflow-wrap: anywhere;
}
.mh .mh-pay-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 8px;
}
.mh .mh-pay-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  font-weight: 700;
  color: #7a1f1f;
}
.mh .mh-pay-link svg {
  width: 16px;
  height: 16px;
}

/* カード */
.mh .mh-card {
  display: block;
  color: #273343;
  background: #fff;
  border: 1px solid #e6ebf1;
  border-radius: 18px;
  box-shadow: 0 10px 28px -22px rgba(39, 51, 67, 0.55);
}

/* 表示中の回線 */
.mh .mh-line {
  padding: 16px;
}
.mh h2.mh-eyebrow {
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  color: #5f6b7a;
  background: none;
  border: 0;
}
.mh .mh-tel {
  margin-top: 2px;
  font-family: "Roboto", sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #273343;
}
.mh .mh-plan {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: #4a5565;
}
.mh .mh-status {
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #0f6b3f;
  background: #e8f7ef;
  border-radius: 999px;
}
.mh .mh-stats {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.mh .mh-stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
  padding: 10px 8px;
  background: #f6f8fb;
  border-radius: 12px;
}
/* 「保有ポイン/ト」と1文字だけ落ちないように(言葉の途中では、収まらないときだけ折る) */
.mh .mh-stat dt {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  color: #5f6b7a;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.mh .mh-stat dt small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #5f6b7a;
}
.mh .mh-stat dd {
  font-family: "Roboto", sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  color: #273343;
  white-space: nowrap;
}
.mh .mh-stat.is-gb dd {
  font-size: 28px;
  color: #00796b;
}
.mh .mh-stat dd small {
  margin-left: 2px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #5f6b7a;
}
.mh .mh-stat .index-gb-note {
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: normal;
  color: #5f6b7a;
}

/* 残りわずか(2026-10-27 D-会員4)。札は数字の横、次にできることはカードの中。色だけに頼らず文字で知らせる */
/* 枠が狭い(3つ並び)ので、数字の下に置く */
.mh .mh-low-pill {
  display: block;
  width: fit-content;
  margin: 4px 0 0;
  padding: 2px 8px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  vertical-align: middle;
  color: #b91512;
  background: #fff;
  border: 1px solid #b91512;
  border-radius: 999px;
}
.mh .mh-low {
  margin-top: 12px;
  padding: 12px 14px;
  background: #fff4f2;
  border: 1px solid #f2c7c1;
  border-radius: 12px;
}
.mh .mh-low-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #9a1b13;
}
.mh .mh-low-title svg {
  flex: none;
  width: 18px;
  height: 18px;
}
.mh .mh-low-text {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #273343;
}
.mh .mh-low-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.mh .mh-low-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: #00796b;
  border-radius: 10px;
}
.mh .mh-low-link.is-sub {
  color: #00796b;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px #00b19f;
}
.mh .mh-low-link svg {
  width: 16px;
  height: 16px;
}
/* 使い方に合ったプラン(容量だけで比べる。料金は出さない) */
.mh .mh-plan-advice {
  margin: 12px 0 0;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: #273343;
  background: #f1faf9;
  border-radius: 12px;
}
/* 文の下の行に置く(文の途中に 44px の高さの道を入れると、行の間が乱れる) */
.mh .mh-plan-advice-link {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  font-weight: 700;
  color: #00796b;
}
.mh .mh-plan-advice-link svg {
  width: 16px;
  height: 16px;
}

/* 最新の残量を取得(部品は TrafficRefreshButton。中の作りは変えず見た目だけ) */
.mh .mh-refresh {
  margin-top: 10px;
}
.mh .mh-refresh .button.gb-refresh {
  width: 100%;
  min-height: 46px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #00796b;
  background: #fff;
  border: 1.5px solid #bfe3dd;
  border-radius: 12px;
}
.mh .mh-refresh .button.gb-refresh::after {
  display: none;
}
.mh .mh-refresh .index-gb-note {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  text-align: center;
  color: #4a5565;
}
/* 待ちの間(取得できたあと、次に押せる時刻まで。2026-11-03)。押すと真ん中に知らせる。色だけに頼らず下に文字で */
.mh .mh-refresh .button.gb-refresh.is-waiting {
  color: #5f6b7a;
  background: #eef1f4;
  border-color: #d5dbe1;
}
.mh .mh-refresh .gb-refresh-wait {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
  color: #4a5565;
}
.mh .mh-refresh .gb-refresh-timer {
  display: block;
  font-weight: 700;
  color: #00796b;
  font-variant-numeric: tabular-nums;
}
/* 取得のボタンが無い回線: GB残量確認(担当者に依頼)への道。ボタンと同じ大きさ */
.mh .mh-refresh .mh-refresh-ask {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 46px;
  font-size: 14px;
  font-weight: 700;
  color: #00796b;
  text-decoration: none;
  background: #fff;
  border: 1.5px solid #bfe3dd;
  border-radius: 12px;
}
.mh .mh-refresh .mh-refresh-ask svg {
  width: 16px;
  height: 16px;
}

/* よく使う入口(契約情報・メール設定) */
.mh .mh-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.mh .mh-quick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #273343;
  text-decoration: none;
  background: #fff;
  border: 1.5px solid #e3e8ef;
  border-radius: 12px;
}
.mh .mh-quick-item img {
  flex: none;
  width: 28px;
  height: 28px;
}

/* ほかの回線 */
.mh .mh-lines {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  min-height: 44px;
  margin-top: 12px;
  padding-top: 12px;
  font-size: 13px;
  color: #4a5565;
  text-decoration: none;
  border-top: 1px dashed #e3e8ef;
}
.mh .mh-lines span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
  color: #00796b;
}
.mh .mh-lines svg {
  width: 16px;
  height: 16px;
}

/* 購入 */
.mh .mh-purchase {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 8px 14px 8px 8px;
  text-decoration: none;
}
/* 絵は WebP と PNG を <picture> で渡している。箱は持たせず、中の img をこれまでどおり並べる */
.mh .mh-purchase picture {
  display: contents;
}
.mh .mh-purchase img {
  flex: none;
  width: 96px;
  height: 64px;
  object-fit: contain;
}
.mh .mh-purchase-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  font-size: 16px;
  font-weight: 800;
}
.mh .mh-purchase-text small {
  font-size: 12px;
  font-weight: 700;
  color: #5f6b7a;
}
.mh .mh-purchase > svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: #9aa4b2;
}

/* 見出し(古い CSS の上下の線・紺の帯・前後の余白を打ち消す) */
.mh .mh-section {
  margin-top: 26px;
}
.mh h2.mh-h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  color: #273343;
  background: none;
  border: 0;
  /* 線の色は会員側の見出し(headings.css・「確認・履歴」)と同じ */
  border-left: 4px solid var(--c-interaction, #00B19F);
}
.mh h2.mh-h2 + * {
  margin-top: 0;
}
.mh h3.mh-h3 {
  margin: 14px 2px 8px;
  padding: 0;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.4;
  text-align: left;
  color: #5f6b7a;
  background: none;
  border: 0;
  border-radius: 0;
}
.mh h3.mh-h3 + * {
  margin-top: 0;
}
.mh .mh-group:first-of-type h3.mh-h3 {
  margin-top: 4px;
}
/* 手続きの名前は決めた所で折り返す(MenuLabel.tsx。「お申込・/ご注文状況」「解約・転出の/ご相談」)。
   収まらないときだけ言葉の途中で折る。解約の入口も 12px のまま(以前は 11px に縮めていた) */
.mh div.mypage-menu a span {
  text-align: center;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
/* 絵と名前をひとまとまりにして、枠の上下の真ん中に置く(2026-10-27)。
   以前は絵を枠の真ん中に重ねて置き(style.css の position:absolute)、名前を下に寄せていたため、
   名前が2行になると上へ伸びて絵に重なっていた(「紹介ポイントの利用」) */
.mh div.mypage-menu a {
  justify-content: center;
  gap: 6px;
}
.mh div.mypage-menu a img {
  position: static;
  transform: none;
  margin: 0;
}
.mh div.mypage-menu a.myp-icon35 span {
  font-size: 12px;
  letter-spacing: 0;
}

/* お問い合わせ */
.mh .mh-lead {
  margin: 0 2px 10px;
  font-size: 13px;
  line-height: 1.6;
  color: #4a5565;
}
.mh .mh-contact-list,
.mh .mh-news {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6ebf1;
  border-radius: 16px;
}
.mh .mh-contact-list li + li,
.mh .mh-news li + li {
  margin-top: 0;
  border-top: 1px solid #edf0f4;
}
.mh .mh-contact-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #273343;
  text-decoration: none;
}
.mh .mh-contact-list img {
  flex: none;
  width: 34px;
  height: 34px;
}
.mh .mh-contact-list .mh-contact-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.mh .mh-contact-list small {
  font-size: 12px;
  font-weight: 600;
  color: #5f6b7a;
}
.mh .mh-contact-list svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: #9aa4b2;
}
.mh .mh-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: #00796b;
  border-radius: 14px;
}
.mh .mh-button.is-sub {
  color: #00796b;
  background: #fff;
  border: 1.5px solid #bfe3dd;
}

/* お知らせ */
.mh .mh-news a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  color: #273343;
  text-decoration: none;
}
.mh .mh-news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #5f6b7a;
}
.mh .mh-news .days,
.mh .mh-news .cate {
  display: inline-block;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: #5f6b7a;
  background: none;
  border: 0;
}
.mh .mh-news .cate {
  padding: 0 8px;
  border: 1px solid #e3e8ef;
  border-radius: 999px;
}
.mh .mh-news-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.mh .mh-empty {
  padding: 16px;
  font-size: 13.5px;
  text-align: center;
  color: #5f6b7a;
  background: #fff;
  border-radius: 16px;
}
.mh .mh-section .news-badge {
  font-size: 12px;
}

@media screen and (max-width: 360px) {
  .mh .mh-stats {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .mh .mh-stat.is-gb {
    grid-column: 1 / -1;
  }
}
