/* ファイル：/system/style_final.css */

* { box-sizing: border-box; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 2;
  color: #333333;
  background: #ffffff;
  margin: 0;
  padding: 0;
  text-align: center;
}

h1, h2, h3, p, ul, li, dl, dt, dd { margin: 0; padding: 0; }
ul  { list-style-type: none; }
img { border: none; }

/* =========================================================
   リンク
   ========================================================= */

a       { color: #333333; }
a:hover { color: #c8002a; }

/* =========================================================
   ユーティリティ（旧ページ共存用）
   ========================================================= */

.look              { background: #f5f5f5; }
.color1            { color: #c8002a; }
.marker_yellow     { background: linear-gradient(transparent 60%, #ffff66 60%); }
.has-vivid-red-color { color: #ff0000; }
.money             { text-align: right; }
.btn_style1        { text-align: center; }
.tbl_cusm          { width: 100%; table-layout: fixed; }

/* =========================================================
   旧レイアウト（companion_schedule.cgi 等 旧ページ共存用）
   ========================================================= */

#container { width: 799px; margin: 0 auto; text-align: left; }

#header { height: 399px; width: 799px; position: relative; margin-bottom: 1px; }

#header h1 {
  font-size: 10px; color: #000000; font-weight: normal;
  width: 250px; line-height: 1.4;
  position: absolute; left: 5px; top: 250px; z-index: 5;
}

#header img { top: 0; left: 0; }

ul#topmenu li  { float: left; }
ul#topmenu img { vertical-align: bottom; }
ul#topmenu div { margin: 0 5px; }

#contents { clear: left; width: 800px; margin: 0 auto; padding-top: 10px; }

#side    { float: left; width: 210px; padding-bottom: 100px; }
#side h3 { font-size: 100%; line-height: 60px; color: #ffffff; height: 70px; text-align: center; overflow: hidden; }
#side p  { padding-top: 0.5em; padding-bottom: 1em; }

ul.sidemenu a {
  color: #666666; text-decoration: none; text-align: center;
  border-bottom: 1px solid #aeaeae; display: block; width: 210px; padding: 0.5em 0;
}
ul.sidemenu a:hover { background: #f7f7f7; color: #000000; }

#main    { float: right; width: 570px; padding-bottom: 100px; }
#main h2 { font-size: 100%; color: #ffffff; line-height: 40px; height: 40px; overflow: hidden; padding-left: 10px; padding-right: 50px; }
#main p  { padding: 0.5em 10px 1em; }

#footer      { clear: both; width: 100%; line-height: 1.4; text-align: center; }

#main dl.new { width: 550px; height: 100px; overflow: auto; padding: 10px; }
#main dl.new dt { font-weight: bold; }
#main dl.new dd { border-bottom: 1px solid #cfcfcf; }

/* =========================================================
   ツールチップ
   ========================================================= */

.tooltip { position: relative; cursor: pointer; }
.tooltip:hover .tooltip-text { opacity: 1; visibility: visible; }

.tooltip-text {
  opacity: 0; visibility: hidden;
  position: absolute; left: 50%; transform: translateX(30%); bottom: -5px;
  display: inline-block; padding: 5px; white-space: nowrap;
  font-size: 12px; line-height: 1.3;
  background: #4169e1; color: #fff; border-radius: 3px;
  transition: 0.3s ease-in; box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.tooltip-text::before {
  content: ''; position: absolute; top: 0; left: 50%; margin-left: -50px;
}

/* =========================================================
   レスポンシブ（旧ページ用）
   ========================================================= */

@media screen and (min-width: 481px) and (max-width: 800px) {
  #container { width: auto; margin: 0 10px; }
  #header    { height: auto; width: 100%; }
  #header h1 { display: none; }
  #header img { height: auto; width: 100%; }

  ul#topmenu li  { width: 50%; float: left; }
  ul#topmenu img { display: none; }
  ul#topmenu a   { text-decoration: none; }
  ul#topmenu div {
    width: auto; height: 35px; text-align: center; vertical-align: middle;
    color: #ffffff; font-weight: bold; font-size: 150%;
    background-image: linear-gradient(#ffffff, #FF8A9F, #FFC0CB);
    border: solid 1px #C8002A; display: block;
  }

  #contents { width: 100%; }
  #side     { width: 100%; padding-bottom: 10px; }
  #side h3  { height: 50px; padding-left: 10px; text-align: left; font-size: 100%; line-height: 40px; background-image: linear-gradient(#FFC0CB, #FF8A9F, #FF8A9F, #FFC0CB); clear: both; }

  ul.sidemenu a  { width: auto; }
  ul.sidemenu li { width: 49%; float: left; }
  ul.sidemenu li:nth-child(odd) { border-right: 1px solid #aeaeae; }

  #main    { width: 100%; padding-bottom: 10px; }
  #main h2 { font-size: 100%; background-image: linear-gradient(#FFC0CB, #FF8A9F, #FF8A9F, #FFC0CB); color: #ffffff; line-height: 30px; height: auto; min-height: 30px; padding-right: 10px; }

  #main dl.new { width: auto; padding: 5px; }
}

@media screen and (max-width: 480px) {
  #container { width: auto; margin: 0 10px; }
  #header    { height: auto; width: 100%; }
  #header h1 { display: none; }
  #header img { height: auto; width: 100%; }

  ul#topmenu li  { width: 100%; float: left; }
  ul#topmenu img { display: none; }
  ul#topmenu a   { text-decoration: none; }
  ul#topmenu div {
    width: auto; height: 30px; text-align: center; vertical-align: middle;
    color: #ffffff; font-weight: bold; font-size: 130%;
    background-image: linear-gradient(#ffffff, #FF8A9F, #FFC0CB);
    border: solid 1px #FF8A9F; display: block;
  }

  #contents { width: 100%; }
  #side     { width: 100%; padding-bottom: 10px; }
  #side h3  { height: 40px; padding-left: 10px; text-align: left; font-size: 100%; line-height: 30px; background-image: linear-gradient(#FFC0CB, #FF8A9F, #FF8A9F, #FFC0CB); }

  ul.sidemenu a { width: auto; }

  #main    { width: 100%; padding-bottom: 10px; }
  #main h2 { font-size: 100%; background-image: linear-gradient(#FFC0CB, #FF8A9F, #FF8A9F, #FFC0CB); color: #ffffff; line-height: 30px; height: auto; min-height: 30px; padding-right: 10px; }

  #main dl.new { width: auto; padding: 5px; }
}

/* =========================================================
   共通フッター（全ページ共用）
   ========================================================= */

.staff-menu-footer {
  border-top: 1px solid #333333;
  background: #9b9b9b;
  color: #ffffff;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  padding: 6px 10px;
}

/* =========================================================
   勤怠管理メニュー（menu.html）
   480px超でサイドにグレー枠表示
   ========================================================= */

.staff-menu-body  { margin: 0; background: #dcdcdc; }
.staff-menu-shell { min-height: 100vh; background: #dcdcdc; }

.staff-menu-app {
  width: 100%; max-width: 480px; min-height: 100vh;
  margin: 0 auto; background: #ffffff;
  border-left: 1px solid #333333; border-right: 1px solid #333333;
  display: flex; flex-direction: column;
}

.staff-menu-header {
  border-top: 1px solid #333333; border-bottom: 1px solid #333333;
  padding: 14px 16px; background: #ffffff;
}

.staff-menu-title {
  margin: 0; font-size: 20px; font-weight: bold;
  line-height: 1.4; text-align: center; color: #111111;
}

.staff-menu-main { flex: 1; padding: 18px 10px 24px; }
.staff-menu-nav  { display: block; }

.staff-menu-group       { margin-top: 14px; padding-top: 6px; }
.staff-menu-group__title {
  margin: 0 0 4px; padding: 0 10px;
  font-size: 16px; font-weight: normal; line-height: 1.5;
  color: #333333; text-align: left;
}

.staff-menu-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; text-decoration: none; color: #333333; padding: 14px 10px;
}
.staff-menu-item:hover { background: #f7f7f7; color: #333333; }

.staff-menu-item__main  { display: flex; align-items: center; gap: 14px; min-width: 0; }
.staff-menu-item__icon  { width: 28px; height: 28px; object-fit: contain; flex: 0 0 28px; }
.staff-menu-item__label { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; line-height: 1.4; color: #333333; }
.staff-menu-item__arrow { flex: 0 0 auto; font-size: 24px; line-height: 1; color: #333333; }

/* =========================================================
   プッシュ通知ダイアログ（#pushPromptBox）
   ========================================================= */

.push-prompt {
  display: none; position: fixed;
  left: 0; right: 0; bottom: 0; z-index: 9999;
  background: #ffffff; border-top: 1px solid #dddddd;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.12); padding: 16px;
}

.push-prompt__body    { display: flex; align-items: center; gap: 12px; }
.push-prompt__icon    { width: 48px; height: 48px; border-radius: 12px; flex: 0 0 48px; }
.push-prompt__text    { flex: 1; font-size: 14px; line-height: 1.7; color: #222222; }
.push-prompt__actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 14px; }

.push-prompt__btn-later {
  border: none; background: none; color: #1a73e8;
  font-size: 16px; padding: 10px 14px; cursor: pointer;
}

.push-prompt__btn-enable {
  border: none; background: #1a73e8; color: #ffffff;
  font-size: 16px; padding: 10px 18px; border-radius: 8px; cursor: pointer;
}

/* =========================================================
   プロフィール編集・各種設定 共通シェル・ヘッダー
   480px超でサイドにグレー枠表示
   ========================================================= */

.cast-profile-body  { margin: 0; background: #dcdcdc; }
.cast-profile-shell { min-height: 100vh; background: #dcdcdc; }

.cast-profile-app {
  width: 100%; max-width: 480px; min-height: 100vh;
  margin: 0 auto; background: #ffffff;
  border-left: 1px solid #333333; border-right: 1px solid #333333;
  display: flex; flex-direction: column;
}

.cast-profile-header {
  display: grid; grid-template-columns: 24px 1fr 24px;
  align-items: center; padding: 10px 8px;
  border-top: 1px solid #333333; border-bottom: 1px solid #333333;
  background: #ffffff;
}

.cast-profile-header__back  { display: block; text-decoration: none; line-height: 1; text-align: left; color: #333333; }
.cast-profile-header__title { font-size: 20px; font-weight: bold; text-align: center; }
.cast-profile-header__dummy { display: block; }

/* =========================================================
   プロフィール編集（cast_profile_edit.html）
   ========================================================= */

.page { padding: 16px; background: #f5f6f7; color: #222222; }

.card { background: #ffffff; border: 1px solid #e2e2e2; border-radius: 12px; padding: 12px; margin: 12px 0; }

.grid        { display: grid; grid-template-columns: 1fr; gap: 12px; }
.field       { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: 12px; color: #444444; font-weight: 600; }

.field__control {
  width: 100%; padding: 10px; border: 1px solid #cccccc;
  border-radius: 10px; font-size: 16px; background: #ffffff; font-family: inherit;
}
.field__control--textarea { resize: vertical; min-height: 120px; }

.attr-block { margin: 8px 0 14px; }
.attr-label { font-weight: 700; font-size: 13px; margin-bottom: 6px; }

.attr-box {
  border: 1px solid #dddddd; border-radius: 10px;
  padding: 8px 10px; background: #fafafa;
  display: flex; flex-wrap: wrap; gap: 8px 14px;
}

.attr-item { display: flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.attr-item input[type="checkbox"] { transform: scale(1.1); }

.img-uploader { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 10px 0 20px; }

.img-card    { border: 1px solid #dddddd; border-radius: 12px; padding: 10px; background: #ffffff; }
.img-head    { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.img-title   { font-weight: 700; font-size: 13px; }
.img-actions { display: flex; align-items: center; gap: 10px; }

.img-file input[type="file"] { display: none; }
.img-file-btn {
  display: inline-block; padding: 8px 10px; border-radius: 10px;
  border: 1px solid #cccccc; background: #f7f7f7; font-size: 12px; line-height: 1; cursor: pointer;
}

.img-preview { border: 1px dashed #cfcfcf; border-radius: 12px; background: #fafafa; overflow: hidden; text-align: center; padding: 10px 0; }
.img-preview img { width: 50%; height: auto; display: block; margin: 0 auto; object-fit: contain; }

.hint    { margin: 10px 0 0; font-size: 12px; color: #666666; }
.actions { display: flex; justify-content: flex-end; margin: 14px 0 30px; }

.btn          { border: 0; border-radius: 12px; padding: 12px 14px; font-size: 14px; cursor: pointer; font-family: inherit; }
.btn--primary { background: #111111; color: #ffffff; }

@media screen and (max-width: 480px) {
  .page      { padding: 12px; }
  .attr-box  { gap: 6px 10px; }
  .attr-item { font-size: 12px; }
}

/* =========================================================
   各種設定（setting.html）
   ========================================================= */

.mp-row {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; padding: 0 18px;
  text-decoration: none; color: #222222; box-sizing: border-box;
}

.mp-rowLeft    { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mp-rowRight   { flex: 0 0 auto; margin-left: 12px; }
.mp-rowIcon    { width: 22px; height: 22px; object-fit: contain; display: block; }
.mp-rowChevron { font-size: 22px; line-height: 1; color: #444444; }

.mp-switch { position: relative; display: inline-block; width: 46px; height: 28px; }

.mp-switchInput { opacity: 0; width: 0; height: 0; position: absolute; }

.mp-switchSlider { position: absolute; inset: 0; background: #d9d9d9; border-radius: 999px; transition: .2s; }

.mp-switchSlider::before {
  content: ""; position: absolute;
  width: 22px; height: 22px; left: 3px; top: 3px;
  background: #ffffff; border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18); transition: .2s;
}

.mp-switchInput:checked + .mp-switchSlider         { background: #19c319; }
.mp-switchInput:checked + .mp-switchSlider::before { transform: translateX(18px); }
.mp-switchInput:disabled + .mp-switchSlider        { opacity: .6; }

.staff-menu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff0000;
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  font-weight: bold;
}

/* ---- 2026.05.14  足跡・いいね一覧  ADD[S] ------------------- */

.visit-page{
  flex:1;
  background:#ffffff;
}

.visit-tabs{
  display:flex;
  border-bottom:1px solid #dddddd;
}

.visit-tab{
  flex:1;
  height:48px;
  border:none;
  border-bottom:2px solid transparent;
  background:#ffffff;
  font-size:15px;
  cursor:pointer;
}

.visit-tab.is-active{
  border-bottom-color:#ff6b98;
  font-weight:bold;
}

.visit-panel{
  display:none;
}

.visit-panel.is-active{
  display:block;
}

.visit-table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
}

.visit-table th,
.visit-table td{
  padding:12px 8px;
  border-bottom:1px solid #eeeeee;
  font-size:13px;
  text-align:left;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.visit-table th{
  background:#fafafa;
  font-weight:bold;
}

.visit-table tbody tr{
  cursor:pointer;
}

.visit-table tbody tr:active{
  background:#f7f7f7;
}
/* ---- 2026.05.14  足跡・いいね一覧  ADD[E] ------------------- */

/* ---- 2026.05.14  顧客情報画面  ADD[S] ------------------- */
.customer-profile-main{
  flex:1;
  background:#ffffff;
  padding:24px 20px 32px;
}

.customer-profile-iconWrap{
  text-align:center;
  margin-bottom:28px;
}

.customer-profile-icon{
  width:140px;
  height:140px;
  border-radius:50%;
  object-fit:cover;
  background:#f3f3f3;
}

.customer-profile-table{
  width:100%;
  border-collapse:collapse;
  margin-bottom:24px;
}

.customer-profile-table th,
.customer-profile-table td{
  padding:12px 0;
  font-size:16px;
  line-height:1.8;
  vertical-align:top;
  text-align:left;
}

.customer-profile-table th{
  width:96px;
  font-weight:bold;
  text-align:left;
}

.customer-profile-introTitle{
  margin-bottom:12px;
  font-size:16px;
  font-weight:bold;
  text-align:left;
}

.customer-profile-intro{
  font-size:16px;
  line-height:2;
  word-break:break-word;
  min-height:120px;
  text-align:left;
}

.customer-profile-btns{
  display:flex;
  gap:12px;
  margin-top:32px;
}

.customer-profile-btn{
  flex:1;
  height:48px;
  border:1px solid #222222;
  border-radius:10px;
  background:#ffffff;
  color:#222222;
  font-size:16px;
  font-weight:bold;
  text-decoration:none;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
/* ---- 2026.05.14  顧客情報画面  ADD[E] ------------------- */

/* ---- 2026.07.07    ADD[S] ------------------- */
.font-red-bold{
  color: #FF0000;
  font-weight: bold;
}
/* ---- 2026.07.07    ADD[E] ------------------- */

/* ---- 2026.07.12    ADD[S] ------------------- */
/* 顧客プロフィール：あなたへの関心度 */
.customer-profile-interest{
    margin:20px 24px 0;
    border:1px solid #ddd;
    border-radius:6px;
    overflow:hidden;
    background:#fff;
}

.customer-profile-interest-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:8px 12px;
    background:#f7f7f7;
    border-bottom:1px solid #e5e5e5;
}

.customer-profile-interest-header span:first-child{
    font-size:14px;
    font-weight:700;
    color:#333;
}

.customer-profile-interest-header span:last-child{
    font-size:11px;
    color:#999;
}

.customer-profile-interest-table{
    width:100%;
    border-collapse:collapse;
}

.customer-profile-interest-table tr{
    border-bottom:1px solid #f0f0f0;
}

.customer-profile-interest-table tr:last-child{
    border-bottom:none;
}

.customer-profile-interest-table th,
.customer-profile-interest-table td{
    padding:12px 14px;
    font-size:14px;
    line-height:1.4;
}

.customer-profile-interest-table th{
    width:68%;
    text-align:left;
    font-weight:700;
    color:#333;
}

.customer-profile-interest-table td{
    width:32%;
    text-align:right;
    color:#333;
    white-space:nowrap;
}
/* ---- 2026.07.12    ADD[E] ------------------- */

/* ---- 2026.07.22    ADD[S] ------------------- */
/* 足跡・いいね 未読マーク */
.visit-name{
    display:inline-flex;
    align-items:center;
}

.visit-dot-area{
    width:18px;
    display:inline-flex;
    justify-content:center;
    flex-shrink:0;
}

.visit-unread-dot{
    width:10px;
    height:10px;
    border-radius:50%;
    background:#ff1d1d;
    display:block;
}
/* ---- 2026.07.22    ADD[E] ------------------- */