@charset "UTF-8";

/*
 * iOS Chrome (Blink) スクロール時の水平レイアウトシフト対策。
 *
 * 根本原因: iOS Chrome (Blink, iOS 17.4+) はアドレスバー表示/非表示で
 * dvw/dvh が変化する。mase.css の ._z { max-width:100dvw; min-height:100dvh } が
 * これを受けてグリッド再計算を起こし横幅が広がって見える。
 *
 * 対策A: html/body に overflow-x を設定してはみ出しによる幅変動を抑止。
 *   - html: clip (スクロールコンテキストを作らず position:fixed に影響しない)
 *   - body: hidden (iOS < 16 の clip 未対応 fallback 兼、body レベルで横溢を遮断)
 *
 * 対策B: ._z の dvh/dvw を svh/svw に差し替え（アドレスバー変化で値が変わらない固定値）。
 */
html {
    overflow-x: hidden; /* fallback */
    overflow-x: clip;
}
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

._z {
    width: 100%;
    min-height: 100svh;
    max-width: 100svw;
}

/*
 * Lucide icons CLS（レイアウトシフト）対策。
 * Tailwind が DOMContentLoaded 後に w-* h-* を注入するまで <i data-lucide> のサイズが 0 になる。
 * display:inline-block にしておくことで SVG 置換後のサイズ変化を最小化する。
 */
i[data-lucide] {
    display: inline-block;
}

/*
 * ._a グリッドエリア（ヘッダー行）を後続の ._defgh より上に描画する。
 * mase.css (@layer mase) が ._a に z-index:0 を設定して stacking context を作るため、
 * position:fixed のヘッダーも ._a の context 内に閉じ込められる。
 * @layer 外のルールは @layer mase より優先されるため !important 不要。
 */
._z ._a {
    z-index: 12;
}

._mypage._mailList main td.footer > a:hover,
._mypage._mailList main .mailOpener:hover {
    color: var(--color-main);
    opacity: 1;
}

@layer mase {
  :root {
    --color-main: #005BBB;
  }
}

/*
 *
 * tailwindCSSにresetされる要素で致命的な奴らの調整
 *
 */

/* aタグ系 */
a {
  color: inherit;
  transition: all 0.3s ease;
}

/* u-label a は @layer mase で color: var(--color-main-on) が設定されているが、
   上の a { color: inherit } (unlayered) に負けてしまうため明示的に上書き */
.u-label a {
  color: var(--color-main-on) !important;
}

a.u-btn {
  color: var(--c-text) !important;
}

a.mainPrimary,
a.subPrimary {
  color: var(--color-main-on) !important;
}

a.mainPrimary:hover {
  color: #056CF2 !important;
  background-color: var(--color-main-on) !important;
  border: 1px solid #056CF2 !important;
  opacity: 1;
}

a.subPrimay:hover {
  color: var(--color-sub) !important;
  background-color: var(--color-sub-on) !important;
  border: 1px solid var(--color-border-sub) !important;
  opacity: 1;
}

a.mainSecondary {
  color: var(--color-main) !important;
}

a.u-btn.mainPrimary {
  background-color: var(--color-main) !important;
  color: var(--color-main-on) !important;
}

a.u-btn.disagreeproposal {
  background-color: white !important;
  color: var(--color-main) !important;
  border: 1px solid var(--color-main) !important;
}

a.u-btn.disagreeproposal:hover {
  background-color: var(--color-main) !important;
  color: var(--color-main-on) !important;
  opacity: 1;
}

a.u-btn.mainSecondary {
  background-color: white !important;
  color: var(--color-main) !important;
  border: 1px solid var(--color-border-gray) !important;
}

/* input / textarea / select 系（Tailwind preflight: * { border-width: 0 } 対策）
   :where() を外して specificity (0,0,1) にすることで Tailwind の * (0,0,0) に勝つ */
:is(input, textarea, select):not(:where(.gm-style, ._ck, ._encapsulate, .tw-form-shell) *) {
  border: 1px solid var(--color-border-gray);
  border-radius: 2px;
  padding: 0.5em;
}

textarea:not(:where(.gm-style, ._ck, ._encapsulate, .tw-form-shell) *) {
  width: 100%;
  min-height: 5em;
}

/* メッセージ日付セパレータ（日付を mySelf グリッドの外に出してセンタリング） */
.e-messages ul li.date-separator {
  list-style: none;
  text-align: center;
  padding: 0.5em 1em 0;
}
.e-messages ul li.date-separator time {
  display: inline-block;
  font-size: 0.7em;
  background-color: rgba(242, 65, 113, 0.1);
  border-radius: 1.5em;
  padding: 0.5em 1.5em;
  margin-bottom: 1em;
  color: gray;
}

/* button タグ系（Tailwind preflight: button { background-color: transparent } 対策） */
button.u-btn {
  background-color: white;
  border: 1px solid var(--color-border-gray);
  border-radius: var(--radius-m);
  color: var(--initial-color);
  cursor: pointer;
  padding-left: 5px;
}

button.u-btn:hover {
  opacity: 0.8;
  transition: 0.2s;
}

button.u-btn.mainPrimary {
  padding: 0 10px;
  color: var(--color-main-on);
  background-color: var(--color-main);
  border-color: var(--color-main);
}

button.u-btn.mainPrimary:hover {
  color: var(--color-main);
  background-color: var(--color-main-on);
  border: 1px solid var(--color-main);
  opacity: 1;
}

button.u-btn.mainSecondary {
  color: var(--color-main);
  background-color: var(--color-main-on);
  border: 1px solid var(--color-main);
}

button.u-btn.mainSecondary:hover {
  color: var(--color-main-on);
  background-color: var(--color-main);
  opacity: 1;
}

button.u-btn.subPrimary {
  color: var(--color-sub-on);
  background-color: var(--color-sub);
  border-color: var(--color-sub);
}

button.u-btn.subPrimary:hover {
  color: var(--color-sub);
  background-color: var(--color-sub-on);
  border: 1px solid var(--color-border-sub);
  opacity: 1;
}

button.u-btn.subSecondary {
  color: var(--color-sub);
  background-color: var(--color-sub-on);
  border: 1px solid var(--color-border-sub);
}

button.u-btn.subSecondary:hover {
  color: var(--color-sub-on);
  background-color: var(--color-sub);
  opacity: 1;
}

/*
 * パンくず横幅をコンテンツ領域に合わせて左寄せ
 * ._b は全幅グリッド行のため、._z の max-width クラスに応じて
 * margin-left でコンテンツ左端と揃える
 */
.t-breadcrumb {
  background: none;
  width: min(100%, 1200px);
  /* デフォルト（max-width: 1200px ページ） */
  padding: 1rem 0 0 1rem;
  /* グリッド列の内側padding（._f 等）に合わせる */
}

/* .m ページ（max-width: 1000px、例: mypage/config） */
._z.m .t-breadcrumb {
  max-width: 1000px;
}

/* .s ページ（max-width: 800px） */
._z.s .t-breadcrumb {
  max-width: 800px;
}

/* 1201px 以上: デフォルトページのセンタリング余白分だけ右にずらして左寄せ */
@media (min-width: 1201px) {
  ._z:not(.m, .s, .x) .t-breadcrumb {
    margin-left: calc((100dvw - 1200px) / 2);
  }
}

/* 1001px 以上: .m ページのセンタリング余白分 */
@media (min-width: 1001px) {
  ._z.m .t-breadcrumb {
    margin-left: calc((100dvw - 1000px) / 2);
  }
}

/* 801px 以上: .s ページのセンタリング余白分 */
@media (min-width: 801px) {
  ._z.s .t-breadcrumb {
    margin-left: calc((100dvw - 800px) / 2);
  }
}

.t-breadcrumb a,
.t-breadcrumb span {
  font-size: 1rem;
}

.t-breadcrumb svg {
  width: 1rem;
  height: 1rem;
}

@media screen and (max-width: 767px) {

  .t-breadcrumb a,
  .t-breadcrumb span {
    font-size: 0.875rem;
  }

  .t-breadcrumb li {
    display: none;
  }

  .t-breadcrumb li:nth-last-child(-n+2) {
    display: inline-flex;
    align-items: center;
  }
}

.top-fv {
  height: 640px;
}

@media screen and (max-width: 767px) {
  .top-fv {
    height: 940px;
  }
}

/*
 * オーバーレイメニューを全ての要素の上に展開する
 */
.e-overlayMenu.js-overlayMenu.open {
  z-index: calc(infinity);
  background-color: #01A55DF0;
}

.t-pager>* {
  -webkit-flex: 0 0 2.5rem;
  -webkit-align-self: center;
  flex: 0 0 2.5rem;
  align-self: center;
  max-width: 2.5rem;
  display: grid;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-content: center;
  align-content: center;
  aspect-ratio: 1;
  font-size: 1rem;
  border-radius: 8px;
}

.t-pager a {
  color: #4B5563;
  background-color: transparent;
  border: 1px solid #E5E7EB;
}

.t-pager:has([data-rel=next]) a:last-of-type {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.t-pager:has([data-rel=prev]) a:first-of-type {
  opacity: 0;
  display: none;
  pointer-events: none;
}

.t-pager:has([data-rel=prev]) a:nth-of-type(2) {
  font-size: 0 !important;
}


.t-pager:has([data-rel=next]) a:nth-last-of-type(2) {
  font-size: 0 !important;
}


.t-pager a:hover {
  background-color: #005BBB;
  color: #FFFFFF !important;
}

.t-pager a:hover .t-pager a::before {
  color: #FFFFFF !important;
}


@media screen and(min-width: 800px) {
  .menu {
    margin: 0 auto;
    width: 60%;
  }
}

/*
 * 案件詳細 > お気に入りの挙動
 */
._stc._case._tpl_actions {
  margin: 1.5rem 0 0 0;
}

._stc._case._index ._tpl_actions .case-favorite-btn {
  border-radius: 0.5rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

._stc._case._index ._tpl_actions .case-favorite-btn.is-not-favorited {
  color: #b85b7a;
  background-color: #fff7fa;
  border-color: #f3c3d4;
}

._stc._case._index ._tpl_actions .case-favorite-btn.is-not-favorited:hover {
  color: #a44a6a;
  background-color: #ffeef4;
  border-color: #eeb3c8;
}

._stc._case._index ._tpl_actions .case-favorite-btn.is-favorited {
  color: #7f2f4d;
  background-color: #f6b8cd;
  border-color: #e89ab6;
}

._stc._case._index ._tpl_actions .case-favorite-btn.is-favorited:hover {
  color: #743047;
  background-color: #f4a9c1;
  border-color: #df8baa;
}

/*
 * Header fallback layout (Tailwind未適用時の崩れ防止)
 */
body#mase_css .t-siteHeader .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

body#mase_css .t-siteHeader .header-desktop-nav,
body#mase_css .t-siteHeader .header-desktop-auth {
  display: none;
}

body#mase_css .t-siteHeader .header-mobile-toggle {
  display: flex;
  align-items: center;
}

body#mase_css .t-siteHeader .header-mobile-menu {
  left: 0;
  right: 0;
  width: 100%;
}

@media screen and (min-width: 768px) {
  body#mase_css .t-siteHeader .header-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media screen and (min-width: 1024px) {

  body#mase_css .t-siteHeader .header-desktop-nav,
  body#mase_css .t-siteHeader .header-desktop-auth {
    display: flex;
    align-items: center;
  }

  body#mase_css .t-siteHeader .header-mobile-toggle,
  body#mase_css .t-siteHeader .header-mobile-menu {
    display: none;
  }
}

/*
 * モバイル幅最適化（iPhone SE2 含む）
 */
@media screen and (max-width: 767px) {
  :root {
    --width-min: 320px;
  }

  body#mase_css,
  body#mase_css ._z,
  body#mase_css ._z main,
  body#mase_css ._z :where(._a, ._b, ._c, ._d, ._e, ._f, ._g, ._h, ._i, ._j, ._k) {
    min-width: 0;
  }

  body#mase_css ._z :where(._c, ._e, ._g, ._i):has(*) {
    min-width: 0 !important;
    width: 100% !important;
  }

  body#mase_css ._z :where(._d, ._e, ._f, ._g, ._h, ._i):has(*) {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    box-sizing: border-box;
  }

  body#mase_css {
    overflow-x: hidden;
  }

  ._reset_password._tpl_progress ol {
    margin: 1rem 0 0.5rem;
    padding-left: 1.5rem;
  }

  ._reset_password._tpl_progress li {
    padding: 0.25rem 0;
  }

  ._reset_password._tpl_progress li:not(.active) {
    display: none;
  }
}

/*
 * 案件詳細（typeA2）テーブル
 */
.info-table th {
  background-color: #F3F4F6;
  color: #4B5563;
  font-weight: 500;
  font-size: 0.875rem;
  text-align: left;
  padding: 1rem;
  border-bottom: 1px solid #E5E7EB;
  width: 30%;
}

.info-table td {
  padding: 1rem;
  border-bottom: 1px solid #E5E7EB;
  font-size: 0.875rem;
  color: #111827;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

/*
 * パンくずナビ
 * mase.css の FontAwesome 区切り・ホームアイコンを無効化し、Lucide アイコンに統一
 */
.t-breadcrumb li:not(:last-of-type)::after {
  content: none;
}

.t-breadcrumb :where(a, span).top::before {
  content: none;
}

.t-breadcrumb a {
  color: inherit;
  transition: color 0.15s;
}

.t-breadcrumb a:hover {
  color: var(--color-main);
  opacity: 1;
}

/*
 * Overlay menu simple structure
 */
body#mase_css .e-overlayMenu .overlay-menu-auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

body#mase_css .e-overlayMenu .overlay-menu-auth-link {
  color: #ffffff;
  font-weight: 700;
}

body#mase_css .e-overlayMenu .overlay-menu-user {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff !important;
  font-weight: 700;
}

body#mase_css .e-overlayMenu .overlay-menu-user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  object-fit: cover;
}

body#mase_css .e-overlayMenu .overlay-menu-user-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

body#mase_css .e-overlayMenu .overlay-menu-user-name {
  line-height: 1.2;
  color: #ffffff !important;
}

body#mase_css .e-overlayMenu .overlay-menu-auth-separator {
  color: rgba(255, 255, 255, 0.8);
}

body#mase_css .e-overlayMenu .overlay-menu-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

body#mase_css .e-overlayMenu .overlay-menu-title {
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

body#mase_css .e-overlayMenu .overlay-menu-item {
  display: block;
  padding: 0.4rem 0;
  color: #ffffff;
}

body#mase_css .e-overlayMenu .overlay-menu-item::before {
  font-family: "FontAwesome solid";
  content: "\f138";
  margin-right: 0.4rem;
  vertical-align: baseline;
}

body#mase_css .e-overlayMenu .menu {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

body#mase_css .e-overlayMenu .overlay-close-button {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: calc(infinity);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 9999px;
  color: #F4FFF9;
  background: rgba(1, 125, 72, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 700;
  line-height: 1;
}

body#mase_css .e-overlayMenu .overlay-close-button>span:first-child {
  font-size: 1.25rem;
  color: #FFFFFF !important;
}

/*
 * jQuery UI ダイアログ: Tailwind CDN preflight リセット対策
 * mase.css の @layer mase 内ルールは Tailwind CDN（unlayered）に負けるため、
 * @layer 外で再宣言して優先させる。
 */
.ui-dialog {
  container: _container/inline-size;
  width: clamp(300px, 75dvw, 600px) !important;
  max-height: 75dvh;
  background-color: var(--color-base);
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  translate: -50% -50%;
  overflow-y: auto;
}

.ui-dialog:has(.anime-hideSeeks) {
  overflow: hidden;
}

.ui-dialog [class*=ui-] {
  width: auto;
  height: auto;
  min-height: auto !important;
  font-family: "Inter", "Noto Sans JP", "Yu Gothic", "YuGothic", "Meiryo";
  font-size: 1rem;
  font-weight: normal;
  color: var(--initial-color);
  background: none;
  border: none;
  border-radius: 0;
  text-indent: 0;
  padding: 0;
  margin: 0;
  position: static;
}

.ui-dialog [class*=ui-]::before,
.ui-dialog [class*=ui-]::after {
  display: inline-block;
}

.ui-dialog :where([type=text], [type=password], [type=email], [type=number], [type=search], [type=tel]) {
  width: 100%;
}

.ui-dialog .ui-dialog-content {
  padding: 2.5em 5cqw 1em;
}

.ui-dialog .ui-dialog-titlebar {
  height: 2.5rem;
  background-color: transparent;
  border: none;
}

/* ダイアログ内のタイトル（h2._none）を表示 */
.ui-dialog h2._none {
  display: block !important;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  padding: 0 0 0.75em;
  margin-bottom: 1.25em;
  border-bottom: 1px solid #e5e7eb;
}

.ui-dialog .ui-dialog-titlebar-close {
  display: inline-block;
  font-size: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-base);
  border-radius: 100%;
  text-align: center;
  text-indent: 0;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1;
}

.ui-dialog .ui-dialog-titlebar-close::after {
  font-family: "FontAwesome solid";
  content: "\f00d";
  vertical-align: baseline;
  font-size: 1.5rem;
}

.ui-dialog .ui-dialog-titlebar span {
  display: none;
}

.ui-dialog .ui-dialog-buttonset {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em;
  width: 100%;
  padding-bottom: 1em;
}

.ui-dialog .ui-dialog-buttonset button {
  height: var(--input-height);
  background-color: white;
  border: 1px solid var(--color-border-gray);
  border-radius: var(--radius-m);
  user-select: none;
  transition: 0.2s;
  padding-right: 1em;
  padding-left: 1em;
}

.ui-dialog .u-formFooter {
  margin-top: 1.5em;
  padding-top: 1em;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
}

.ui-dialog .u-formFooter button.u-btn.mainPrimary {
  padding: 0.7em 2em;
}

.ui-dialog .t-note {
  border-bottom: 1px solid var(--color-border-gray);
  padding: 1em;
  margin: 0;
}

.ui-dialog table.row tr {
  margin: 0;
}

/* ダイアログ内フォーム入力欄スタイル */
.ui-dialog table.u.row th {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #374151 !important;
  opacity: 1 !important;
}

/* 必須アスタリスク: mase.css の position:absolute を position:static に変更してインライン表示 */
table.u.row tr.required th {
  position: relative !important;
}
table.u.row tr.required th::before {
  position: static !important;
  top: auto !important;
  left: auto !important;
  display: inline !important;
  margin-right: 0.25em !important;
}
/* Case C: tr に required クラスがなく th 内 label に required クラスがある場合
   th::before を使うことで mase.css の tr.required th::before と同じサイズになる */
table.u.row tr:not(.required) th:has(label.required) {
  position: relative !important;
}
table.u.row tr:not(.required) th:has(label.required)::before {
  font-family: "FontAwesome solid" !important;
  content: "*" !important;
  vertical-align: baseline !important;
  margin-right: 0.5em !important;
  color: var(--color-ng) !important;
  position: static !important;
  display: inline !important;
}
.ui-dialog table.u.row tr.required th {
  padding-left: 0 !important;
}

.ui-dialog table.u.row :where(th, td) {
  padding: 0.6em 0.5em !important;
}

/* 「円」などのユニットを横並びにする */
.ui-dialog table.u.row td {
  display: flex !important;
  align-items: center !important;
  gap: 0.4em !important;
  flex-wrap: wrap !important;
}

.ui-dialog table.u.row :where(input[type=number], input[type=text]) {
  width: auto !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  border: 1.5px solid #d1d5db !important;
  border-radius: 0.5rem !important;
  padding: 0.55em 0.75em !important;
  font-size: 0.9rem !important;
  background-color: #fff !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ui-dialog table.u.row textarea {
  width: 100% !important;
  border: 1.5px solid #d1d5db !important;
  border-radius: 0.5rem !important;
  padding: 0.55em 0.75em !important;
  font-size: 0.9rem !important;
  background-color: #fff !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ui-dialog table.u.row :where(input[type=number], input[type=text], textarea):focus {
  outline: none !important;
  border-color: var(--color-main) !important;
  box-shadow: 0 0 0 3px rgba(5, 108, 242, 0.12) !important;
}

.ui-widget-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 1;
}

@media screen and (min-width: 768px) {
  body#mase_css .e-overlayMenu .overlay-menu-main nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.25rem 1.5rem;
  }
}

/*
 * マイページサイドバー グリッドレイアウト修正
 * min-content トラックは width 指定を無視するため、サイドバーがある場合は列幅を明示的に上書き。
 * @layer 外の記述なので !important なしで @layer mase のルールに優先する。
 * 詳細: docs/mase-css-grid-layout.md
 */
@media (min-width: 751px) {
  ._z:has(._e > *) {
    grid-template-columns: 0px calc(var(--width-max) * 0.25) 1fr 0px 0px;
  }
}

@media (min-width: 1201px) {

  /* 通常ページ（max-width: 1200px）: サイドバーあり時のセンタリング余白を維持 */
  ._z:not(.m, .s, .x):has(._e > *) {
    grid-template-columns: calc((100dvw - var(--width-max)) / 2) calc(var(--width-max) * 0.25) 1fr 0px calc((100dvw - var(--width-max)) / 2);
  }
}

@media (min-width: 1001px) {

  /* .m ページ（max-width: 1000px、例: mypage/config）: サイドバーあり時のセンタリング余白を維持 */
  ._z.m:has(._e > *) {
    grid-template-columns: calc((100dvw - 1000px) / 2) calc(var(--width-max) * 0.25) 1fr 0px calc((100dvw - 1000px) / 2);
  }
}

.box-form{
  margin-top: 10px;
}

/* CSSトライアルバー */
.mase_trial a {
  display: block;
  font-weight: bold;
  color: var(--color-main-on);
  background-color: var(--color-main);
  text-align: center;
  padding: 1em;
}

/*
 * サイドバー current::after（右矢印）の SP 横スクロール対策
 * mase.css: .u-sideMenu .current::after { right: -2em } → SP ではコンテナ外にはみ出す
 */
@media (max-width: 750px) {
  .u-sideMenu .current::after {
    display: none;
  }
}

/*
 * 左サイドナビのアクティブラベルの文字色を変更
 */

._sideMenu.u-sideMenu>.current,
._sideMenu.u-sideMenu>a:hover,
._sideMenu.u-sideMenu>a:hover::before,
._sideMenu.u-sideMenu>.current,
._sideMenu.u-sideMenu>.current::before,
.e-myMenu.js-myMenu.u-sideMenu>a:hover,
.e-myMenu.js-myMenu.u-sideMenu>a:hover::before,
.e-myMenu.js-myMenu.u-sideMenu>.current,
.e-myMenu.js-myMenu.u-sideMenu>.current::before,
.u-openCloser:hover,
.u-openCloser:hover::before,
.u-openCloser:hover::after,
.u-openClose .current,
.u-openClose .current::before,
.u-openClose>a:hover,
.u-openClose>a:hover::before {
  color: var(--color-base)
}

/*
 * 申込詳細（_appliedReceived）カードスタイル
 * ._stc._casemanage._appliedReceived スコープ
 * custom.css は @layer 外なので @layer mase のルールに優先する
 */

/* ===== コンテントヘッダー（案件タイトル） ===== */
._stc._casemanage._appliedReceived .e-contentHeader {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  margin-bottom: 0;
}

._stc._casemanage._appliedReceived .e-contentHeader .title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin: 0;
}

/* ===== ページナビ（追従なし・ピルタブ） ===== */
._stc._casemanage._appliedReceived .u-pageNav.u-sticky {
  position: static;
  top: auto;
  background: transparent;
  margin: 0.5rem 0;
  padding: 0;
}

/* swiper が付与する transform を無効化し、通常の flex に戻す */
._stc._casemanage._appliedReceived .u-pageNav .swiper-wrapper {
  transform: none !important;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* 各ナビ項目 → ピルタブ */
._stc._casemanage._appliedReceived .u-pageNav .swiper-slide {
  width: auto !important;
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: background 0.15s, color 0.15s;
}

._stc._casemanage._appliedReceived .u-pageNav .swiper-slide:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* swiper の矢印ボタンを非表示 */
._stc._casemanage._appliedReceived .u-pageNav .swiper-button-next {
  display: none;
}

/* main: 上下余白 */
._stc._casemanage._appliedReceived main {
  padding-top: 1rem;
  padding-bottom: 3rem;
}

/* embed コンテナを flex column にしてセクション間に gap を確保 */
._stc._casemanage._embed_appliedReceived {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 各セクション・ブロック → ホワイトカード */
._stc._casemanage._embed_appliedReceived > :where(section, div) {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}

/* セクション見出し h3.u */
._stc._casemanage._appliedReceived h3.u {
  font-size: 0.875rem;
  font-weight: 700;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.75rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* ===== 提案セクション ===== */

/* 進捗バー下余白 */
._stc._casemanage._tpl_proposalProgress {
  margin-bottom: 1.25rem;
}

/* 提案価格 dl */
._stc._casemanage._appliedReceived .proposalPrice {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

._stc._casemanage._appliedReceived .proposalPrice dt {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
}

._stc._casemanage._appliedReceived .proposalPrice dd {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

/* 取引無効 notice */
._stc._casemanage._appliedReceived p.u-notice {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* アクションボタン群 footer.u-btns */
._stc._casemanage._appliedReceived footer.u-btns {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===== key-value テーブル (table.u.row) ===== */

._stc._casemanage._appliedReceived table.u.row {
  width: 100%;
  border-collapse: collapse;
}

._stc._casemanage._appliedReceived table.u.row th {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
  text-align: left;
  vertical-align: top;
}

._stc._casemanage._appliedReceived table.u.row td {
  font-size: 0.875rem;
  color: #0f172a;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

._stc._casemanage._appliedReceived table.u.row tr:last-child th,
._stc._casemanage._appliedReceived table.u.row tr:last-child td {
  border-bottom: none;
}

/* ===== メッセージセクション ===== */

/* メッセージ section > header (タイトル + 送信ボタン) */
._stc._casemanage._appliedReceived section.messages > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

/* メッセージ件数0の header 調整 */
._stc._casemanage._appliedReceived section.messages > header h3.u {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* メッセージリスト */
._stc._casemanage._appliedReceived .e-messages ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

._stc._casemanage._appliedReceived .e-messages li.message {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

._stc._casemanage._appliedReceived .e-messages li.message.mySelf {
  flex-direction: row-reverse;
}

._stc._casemanage._appliedReceived .e-messages .content {
  max-width: 70%;
  background: #f1f5f9;
  border-radius: 1rem 1rem 1rem 0.25rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: #0f172a;
}

._stc._casemanage._appliedReceived .e-messages .mySelf .content {
  background: #e0f2fe;
  border-radius: 1rem 1rem 0.25rem 1rem;
}

._stc._casemanage._appliedReceived .e-messages .meta {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

/* メッセージフッター（送信ボタン） */
._stc._casemanage._appliedReceived .e-messages footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

/* ===== _tpl_receivedContentHeader 外枠余白 ===== */
._stc._casemanage._appliedReceived ._tpl_receivedContentHeader {
  margin-bottom: 0;
}

/* u-metaDatas tag（ステータスバッジ）*/
._stc._casemanage._appliedReceived .u-metaDatas.tag {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
}

/* ===== _tpl_memo セクション ===== */
._stc._casemanage._appliedReceived section.memo > header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

/* memo header 内の h3.u: border を無効化（header の border-bottom と二重になるため）*/
._stc._casemanage._appliedReceived section.memo > header h3.u {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* ラベル dl */
._stc._casemanage._appliedReceived section.memo > header dl {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #f1f5f9;
  border-radius: 9999px;
  padding: 0.2rem 0.625rem;
  font-size: 0.8rem;
}

._stc._casemanage._appliedReceived section.memo > header dl dt {
  color: #64748b;
  font-weight: 500;
}

._stc._casemanage._appliedReceived section.memo > header dl dd {
  color: #0f172a;
  font-weight: 600;
}

/* メモ本文 */
._stc._casemanage._appliedReceived section.memo > p {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* ===== 辞退セクション ===== */
/* カードとは別の rose トーンに変更 / inline style をすべて上書き */
._stc._casemanage._embed_appliedReceived > section.withdraw-entry {
  border-color: #ddd;
  margin-top: 0 !important;
  padding: 1.25rem 1.5rem !important;
  text-align: center;
}

/* 辞退リンク → ボタン形式に */
._stc._casemanage._appliedReceived .withdraw-entry a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid #ddd;
  background: #ffffff;
  color: #b91c1c;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}

.decline-entry a{
  width: fit-content;
  margin: 0 auto;
   display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid #ddd;
  background: #ffffff;
  color: #b91c1c;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}

._stc._casemanage._appliedReceived .withdraw-entry a:hover {
 opacity: 0.6;
}

.e-user{
  margin-bottom: 15px;
}

/* u-progress SP: 折り返さず横スクロール */
@media (max-width: 750px) {
  ._register .u-progress {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5em;
    gap: 0 !important;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #cbd5e1;
  }
  ._register .u-progress::-webkit-scrollbar {
    height: 4px;
  }
  ._register .u-progress::-webkit-scrollbar-track {
    background: #cbd5e1;
    border-radius: 2px;
  }
  ._register .u-progress::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 2px;
  }
  ._register .u-progress span {
    flex-shrink: 0 !important;
    width: 11em !important;
    font-size: 0.7em !important;
  }
}
/* 業種チェックボックスラベルを左揃えに (mase.css の text-align:center を上書き) */
.tw-form-shell .f-choice.u-choice > ul > li label {
  text-align: left;
}

/* u-progress: 円アイコンが青バーの上に描画されるようにする */
.u-progress span b {
  position: relative;
  z-index: 1;
}

/* u-progress: activeより後（未達成）のバーをグレーにして進捗を明確化 */
.u-progress span.active::after,
.u-progress span.active ~ span::before,
.u-progress span.active ~ span::after {
  background-color: #d1d5db !important;
}

/* ブログ検索ヘッダーバー内のt-pagerの余白を無効化 */
.blog-header-pager .t-pager {
  padding: 0;
  margin-top: 0;
}


/* パンくず: mase.cssの width:1000px をSPで上書き */
@media (max-width: 750px) {
    .t-breadcrumb {
        width: 100%;
    }
}

/* 記事詳細: Tailwind preflight が ol/ul の padding-left をリセットするため復元 */
._blog._postInfo ._ck ol {
    list-style-type: decimal;
    padding-left: 1.75em;
    margin-block: 0.5em;
}
._blog._postInfo ._ck ul {
    list-style-type: disc;
    padding-left: 1.75em;
    margin-block: 0.5em;
}
._blog._postInfo ._ck li {
    margin-block: 0.25em;
}

/* 記事詳細: 本文内の画像（CKEditor）を幅100%に。inline styleを上書きするため!importantが必要 */
._blog._postInfo ._ck figure,
._blog._postInfo ._ck .image,
._blog._postInfo ._ck .image-style-side {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-inline: 0 !important;
}
._blog._postInfo ._ck img {
    width: 100% !important;
    height: auto !important;
    border-radius: 0.5rem;
}

/* バックエンド申し込み一覧用：プログレスバーの折り返しを抑制して横スクロールさせる */
._backend._casemanage .u-progress {
    flex-wrap: nowrap !important;
    padding-bottom: 0.5em; /* スクロールバーとの干渉回避 */
}
