/*==================================
##共通設定
==================================*/
:root {
  --vk-color-primary-100: rgb(0,83,122,1);
  --vk-color-primary-60: rgb(0,83,122,0.6);
  --vk-color-primary-20: #dbebee;
  --vk-color-primary-multiplication:rgb(0,73,103,1);
  --vk-color-highlighty-100: rgb(252,133,0,1);
  --vk-color-highlighty-60: rgb(252,133,0,0.6);
  --vk-color-highlighty-multiplication: rgb(221,116,0,1);
  --vk-color-text-body: #013C58;

  --side-width: 220px;
}

.um-page .site-body{
  min-height: 100vh;
  display: flex;
  justify-content: center; /* 横中央 */
  align-items: center;     /* 縦中央 */
}

.mypage-page-title{
  margin: .6em 0;
  font-size: 1.9em;
}

.mp-btn{
  display: flex;
  align-items: center;
  justify-content: center;

  width: 250px;
  height: 50px;

  font-size: 16px;
  font-weight: bold;

  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.1em;
}

.mp-btn.design-default {
  color: #fff;
  background-image: linear-gradient(90deg, rgba(0, 83, 122, 1), rgba(95, 180, 196, 1));
}

.mp-btn.design-skeleton{
  border: 1px solid white;
  color:var(--vk-color-text-body);
  border: solid 1px var(--vk-color-text-body);
  background-color: rgb(255, 255, 255);
}

.um a.um-button, .um a.um-button.um-disabled:active, .um a.um-button.um-disabled:focus, .um a.um-button.um-disabled:hover, .um input[type=submit].um-button, .um input[type=submit].um-button:focus {
    background-image: linear-gradient(90deg, rgba(0, 83, 122, 1), rgba(95, 180, 196, 1)) !important;
    font-weight: 600 !important;
    padding: 16px 40px !important;
}

/* メインコンテンツ */
.main-content {
  margin-top: var(--header-height);
  padding: 1.6em 20px;
  background-color: #eff3f4;
  min-height: 100vh;
}

/* PC時のみサイド分ずらす */
@media (min-width: 991px) {
  .main-content {
    margin-left: var(--side-width);
    padding: 2em 60px 24px 60px;
  }
}

/* スマホ表示 */
@media (max-width: 990px) {
  .mypage-page-title{
    margin:0;
    font-size: 1.7em;
  }
}


/*==================================
##CSSリセット
==================================*/
body {
  margin: 0;
}

.widget_link_list{
  display: none;
}

:is(.um-page-login,.um-page-account, .um-page-password-reset) :is(.site-header, .page-header, .breadcrumb, .site-footer, #wpadminbar, .footer-widget-area) {
    display: none !important;
}

.um-field-block,
.um .um-field-label{
    color: var(--vk-color-text-body) !important;
}

a{
  color: var(--vk-color-text-body);
}

:where(:not(.wp-block-table)) > table :is(thead, tbody, tfoot, th, td) {
  border: none;
}

:where(:not(.wp-block-table))>table {
  border: none;
}

/*==================================
##固定ページ「ログイン」
==================================*/
.login-logo img{ 
    width: auto;
    height: 90px;
    margin-left: .8em;
}

.login-logo {
  display: flex;
  justify-content: center;
}

.um-page-login .entry-body h3{
  text-align: center;
  margin-top: .5em;
  margin-bottom: .7em;
}

.um-page-login .entry-body{
  margin: 1.5em 0;
}

.um-form .um-center input{
  width: 100% !important;
}

@media (max-width: 1380px) {
  .login .vk-mobile-nav-menu-btn,
  .um-page-login .vk-mobile-nav-menu-btn,
  .um-page-login .sp-login-btn {
    display: none !important;
  }
}
/*==================================
##固定ページ「パスワードのリセット」
==================================*/
.um-page-password-reset .cancel-btn {
  display: flex;
  justify-content: center;
}

.um-page-password-reset .mp-btn {
  width: 450px;
  max-width: 100%;
}

/*==================================
##固定ページ「お知らせ」
==================================*/

/*==================================
##ヘッダー
==================================*/
.side-nav {
  background-image: linear-gradient(
    180deg,
    rgba(0, 83, 122, 1),
    rgba(95, 180, 196, 1)
  );
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
}

.site-header-logo {
  padding: 1.5em 24px;
}

.side-nav ul {
  list-style: none;
  margin: 20px 0 0 0;
  padding: 0;
}

.side-nav ul li a {
  position: relative;
  display: block;
  padding: 18px 25px;
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  z-index: 1;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.side-nav ul li a::after {
  content: "";
  position: absolute;
  z-index: -1;
  background: rgba(125, 199, 214, 0.464);
  width: 0;
  height: 0;
  bottom: 0;
  right: 0;
  transition: all 0.4s ease;
}

.sign-out-button{
  margin-top: auto;
  margin-bottom: 1.5em;
}

.sign-out-button:hover{
  background: rgba(125, 199, 214, 0.464);
}

.sign-out-button a{
  color: white;
  padding: 18px 25px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.sign-out-button img{
  width: 20px;
}

/* PC表示のみ */
@media (min-width: 991px) {
  .side-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--side-width);
    height: 100vh;
    z-index: 100;
  }

  .menu-toggle {
    display: none;
  }

  .side-nav ul li a:hover::after {
    width: 100% !important;
    height: 100% !important;
  }
}

/* スマホ表示 */
@media (max-width: 990px) {
  .side-nav {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: auto;
    padding-bottom: 20px;
    z-index: 800;
    transition: top 0.3s ease;

    background-image: linear-gradient(
      180deg,
      rgba(0, 83, 122, 0.95),
      rgba(95, 180, 196, 0.95)
    );
  }

  .side-nav.active {
    top: 0;
  }

  .menu-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    background: var(--vk-color-primary-100);
    color: #fff;
    border: none;
    padding: 10px 14px;
    font-size: 20px;
    border-radius: 6px;
    z-index: 900;
    cursor: pointer;
  }

  .side-nav.active + .menu-toggle{
    color: var(--vk-color-primary-100);
    background: #fff;
    font-weight: 600;
  }

  .side-nav .site-header-logo{
    padding: .7em 0 0 0;
  }

  .side-nav ul,
  .side-nav .site-header-logo,
  .side-nav .sign-out-button{
    margin-left: 1em;
  }

  .side-nav ul li a {
    padding: 20px 25px;
    font-size: 17px;
  }
}

/*==================================
##新規登録画面
==================================*/

.um-page-register header,
.um-page-register .vk-mobile-nav-menu-btn,
.um-page-register .sp-login-btn,
.um-page-register .page-header,
.um-page-register #page-header,
.um-page-register .breadcrumb,
.um-page-register #breadcrumb, 
.um-page-register .site-footer,
.um-page-register #site-footer {
    display: none !important;
}

body.um-page-register {
    background-color: white !important;
}

.um-737.um-register {
  background: #f6f7f7 !important;
  padding: 40px !important;
  border-radius: 10px !important;
  max-width: 500px !important;
  margin: 40px auto !important;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.um-register h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--vk-color-primary-100);
  padding-bottom: 10px;
}

/*==================================
##マイページ画面
==================================*/
.welcome-section p {
  line-height: 1.6;
}

.admin-message{
  display: flex;
  align-items: center;
  color: #580104d9;
}

/* カードレイアウト */
.card-grid {
  display: flex;
  gap: 3em;
  margin: 3em 1em;
  min-height: 220px;
}

.card {
  width: calc((100% - 80px) / 3);
  height: 220px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  border-radius: .7em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  letter-spacing:.1em;
  font-weight: 600;
  box-sizing: border-box;
  border: none;
  font-size: 20px;
}

.card a{
  display: flex;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;

  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.314),
    rgba(255,255,255,0)
  );
}

.orange{
  background: linear-gradient(
    135deg,
    rgba(245, 12, 87, 0.799),
    rgb(252, 188, 0)
  );
}

.green{
 background: linear-gradient(
  135deg,
  #3bd6cc,
  #11d02e
  );
}

.purple{
  background: linear-gradient(
  135deg,
  #d72de2,
  #006ce0
  );
}

.icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

/* お知らせ */
section.news-section {
  padding: 1.5em 1em;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  border-radius: .7em;
}

ul.news-list{
    padding-left: 0;
}

.news-section h2 {
  font-size: 22px;
  margin-bottom: .5em;
  margin-left: .2em;

  display: flex;
  align-items: center;
  gap: 8px; 
}

.news-section h2 img{
  width: 32px; 
  height: 32px;
}

.news-list {
  list-style: none;
  border-top: 1px solid #dedede;
  margin: 0;
}

.news-list li {
  padding: 12px 0;
  border-bottom: 1px solid #dedede;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  margin-left: .5em;
}

.meta {
  display: flex;
  gap: 20px;
}

.meta .date{
  color: rgb(121,144,155);
}

.news-list .tag {
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  letter-spacing: 0.05em;
  min-width: 130px;
  text-align: center;
}

.news-list .tag.highlight {
  background-image: linear-gradient(90deg, rgba(233, 104, 52, 1), rgb(255, 157, 0));
  color: white;
}

.news-list .tag.default {
  border :solid 1px var(--vk-color-primary-100);
}

.news-list .news-title {
  text-decoration: underline;
  font-size: 1.25em;
}

/* タブレット表示 */
@media (max-width: 990px) {
  .card-grid {
    display: flex;
    gap: 2.5em;
    margin: 2em 1em;
  }

  .card{
    font-size: 16px;
  }
}

/* スマホ表示 */
@media (max-width: 700px) {
  .welcome-section{
    margin-top: 1.5em;
  }

  .icon {
    width: 60px;
    height: 60px;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    margin-bottom: 0;
  }

  .card p{
    font-size: 1.5em;
    letter-spacing:.1em
  }

  .card-grid {
    flex-direction: column; 
    gap: 1.5em;
    margin: 1em 0 2em 0;
  }

  .card {
    width: 100%;
    height: 100px;
  }
  
  .card a{
    flex-direction: row;      /* ← ここを変える */
    justify-content: flex-start;
    gap: 1em;
    padding: 0 1.5em;
  }

  .orange{
  background: linear-gradient(
    120deg,
    rgba(245, 12, 87, 0.799),
    rgb(252, 188, 0)
  );
}

.green{
 background: linear-gradient(
  120deg,
  #3bd6cc,
  #11d02e
  );
}

.purple{
  background: linear-gradient(
  120deg,
  #d72de2,
  #006ce0
  );
}

  .news-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
    padding: 5px 0 14px 0;
  }

  .meta {
    display: flex;      /* ← 日付とタグを横並び */
    gap: 10px;
    font-size: 12px;
    align-items: center;
  }

  .news-list .tag{
    padding: 2px 10px;
  }

  .news-list .news-title {
    margin-top: .8em;
    margin-left: .2em;
  }
}

/*==================================
##カスタム投稿タイプ「社員向けのお知らせ」
==================================*/
.staff-news {
  margin-left: var(--side-width);
  margin-top: var(--header-height);
  padding: 24px 36px;
  min-height: 100vh;
}

.staff-news a {
  font-weight: bold;
}

/* --- レイアウト調整 --- */
.staff-news {
  padding: 40px 20px;
  min-height: 100vh;
}

.news-detail-wrapper {
  max-width: 800px;
  margin: 0;
}

/*ラベル（全体連絡など） */
.news-meta-top {
    margin-bottom: 15px;
}

/* 個別向けの場合の色を変えたいなら */
.news-label.is-personal {
  background-image: linear-gradient(90deg, rgba(233, 104, 52, 1), rgb(255, 157, 0));
  color: white;
  border: solid 1px transparent;
  border-radius: 999px;
}

/* 日付 */
.news-date {
  font-size: 16px;
  margin-bottom: 30px;
  color: rgb(121,144,155);
}

/*本文*/
.news-content {
  line-height: 1.8;
  font-size: 16px;
  min-height: 40vh;
}

.news-content p {
  margin-bottom: 1.5em;
}

/*戻るリンク*/
.news-footer-link a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  display: inline-block;
}

.news-footer-link a:hover {
  text-decoration: underline;
  opacity: 0.7;
}

.staff-news {
  padding: 40px 20px;
  min-height: 100vh;
}

.news-detail-wrapper {
  max-width: 800px;
  margin: 0;
}

.news-label {
  display: inline-block;
  color: var(--vk-color-primary-100);
  background-color: white;
  padding: 4px 12px;
  font-size: 13px;
  border-radius: 4px;
  border:  solid 1px var(--vk-color-primary-100);
}

.news-content a {
  color: #fff;
  text-decoration: underline;
}

.entry-body-button {
  display: flex;
  justify-content: flex-start;
}

/*==================================
##プロフィール編集ページ
==================================*/
.um-account-heading,
.um-account-side,
.um-account-meta,
.um-account-nav{
    display: none !important;
}

.um-account-general-tab,
.um-account-password-tab{
  margin-top: 1.7em;
}

.um-account-main{
  padding-left: 0 !important;
}


/*==================================
##投稿一覧「お知らせ一覧(社員向け)」
==================================*/
.staff-news-list{
  margin-top: 2em;
}

.news-item{
  background-color: #fff;
  margin-bottom: 1em;
  min-height: 75px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 30px;
  border-radius: 4px;
}

.staff-news-list .meta{
  display :flex;
  gap: 30px;
  align-items: center;
}

.staff-news-list .news-label{
  min-width: 150px;
  text-align: center;
  border-radius: 999px;
}

.staff-news-list .news-title{
  padding-bottom: 0;
  font-size: 1em;
  text-decoration: underline;
  font-weight: 500;
}

.staff-news-list .news-date{
  font-size: 14px;
  margin: 0;
  color: rgb(121,144,155);
}

/* ページャー全体 */
.navigation.pagination {
  margin: 40px 0;
  text-align: center;
}

/* ul */
.navigation.pagination .nav-links {
  display: inline-flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 各ページ番号 */
.page-numbers {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: var(--vk-color-text-body);
  font-size: 14px;
  transition: all 0.2s ease;
  background: white;
}

/* hover */
.page-numbers:hover {
  background:var(--vk-color-primary-100);
  color: #fff;
  border-color: var(--vk-color-primary-100);
}

/* 現在のページ */
.page-numbers.current {
  color: #fff;
  background-image: linear-gradient(90deg, rgba(0, 83, 122, 1), rgba(95, 180, 196, 1));
  font-weight: bold;
}

/* 前へ・次へ */
.page-numbers.prev,
.page-numbers.next {
  font-weight: bold;
}

@media (min-width: 1400px) {
  .staff-news-list{
    width: 80%;
  }
}

@media (max-width: 990px) {
  .news-item{
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
  }

  .staff-news-list .meta{
    gap: 10px;
  }

  .staff-news-list .news-label{
    font-size: 12px;
    padding: 2px 12px;
  }

  .staff-news-list .news-title{
    margin-top: .8em;
    margin-left: .2em;
  }
}