/* =============================================
   LOLIPOP! レンタルサーバー — 共通ヘッダー・レイアウト
   head.html.php で全ページに読み込む
   グローバルリセットは含まない
   ============================================= */

body {
  background: #f5f3f3;
}

.app-header a {
  text-decoration: none;
  color: inherit;
}

/* =============================================
   Header
   ============================================= */

.app-header {
  position: relative;
  z-index: 100;
}

.account-header {
  background-color: #141414;
}

.account-header-inner {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
}

.account-header-inner-label,
.account-header-inner-data,
.account-header-inner-name,
.account-header-inner-domain,
.account-header-inner-title {
  display: inline-block;
}

.account-header-inner-label,
.account-header-inner-name,
.account-header-inner-domain {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-header-inner-name,
.account-header-inner-domain {
  vertical-align: top;
}

.account-header-inner-label {
  background-color: #f2f3f7;
  border-radius: 4px;
  margin-right: 8px;
  max-width: 136px;
  vertical-align: -3px;
}

a.account-header-inner-label-text {
  display: block;
  padding: 4px 8px;
  text-decoration: none;
  font-size: 10px;
  color: #10131c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-header-inner-label.has-label a.account-header-inner-label-text {
  color: #fff;
}

.account-header-inner-data,
.account-header-inner-name,
.account-header-inner-domain {
  font-size: 12px;
  color: #fff;
}

.account-header-inner-name {
  max-width: 84px;
}

.account-header-inner-title {
  margin-left: 5px;
  font-size: 12px;
  color: #b5bac0;
}

.account-header-inner-domain {
  max-width: 200px;
}

a.account-change {
  margin-left: auto;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 400;
}

.main-header {
  background-color: #fff;
  border-bottom: 1px solid #e2dbda;
  height: 50px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 16px;
}

.header-title {
  border: none;
  background: none;
}

.header-title h1 {
  margin: 0;
  padding: 0;
}

.header-title a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-title a img {
  width: 309px;
  height: auto;
  display: block;
}


#HEADER_NAVI_BOX {
  display: flex;
  align-items: center;
  gap: 8px;
}

#HEADER_NAVI_LOG,
#HEADER_NAVI_LOGOUT {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #10131c;
  border-radius: 4px;
  background: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  color: #10131c;
  white-space: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.btn-logout {
  padding: 6px 18px;
  border: 2px solid #10131c;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  font-family: inherit;
  transition: background 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-link,
.btn.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 2px solid #10131c;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  font-family: inherit;
  transition: background 0.15s;
  text-decoration: none;
}


/* =============================================
   Layout: Sidebar + Main
   ============================================= */

.body-wrap {
  min-height: calc(100vh - 94px);
  display: flex;
}

.body-wrap.has-nosession {
  min-height: unset;
}


/* =============================================
   Sidebar
   ============================================= */

.sidebar {
  width: 264px;
  min-width: 264px;
  border-right: 1px solid #e2dbda;
}

.nav-logout {
  margin-top: auto;
  border-top: 1px solid #e2dbda;
  padding: 6px 0;
}

.nav-main {
  padding: 18px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.1s;
  text-decoration: none;
}

.nav-item:hover {
  background: #eceaea;
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-sub {
  padding: 6px 0;
  border-top: 1px solid #e2dbda;
  border-bottom: 1px solid #e2dbda;
}

.nav-item-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: #10131c;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
}

/* =============================================
   Main Content
   ============================================= */

.main {
  flex: 1;
  padding: 24px;
  min-width: 0;
}

#MAIN_CONTENTS {
  max-width: 740px;
  margin: 0 auto;
}

.page-title {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 24px;
  color: #10131c;
}

/* =============================================
   Sidebar: side menu
   ============================================= */

.side-menu {
  padding: 16px 0;
}

.side-menu-group {
  position: relative;
}

.side-menu-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: #10131c;
  text-decoration: none;
  transition: background 0.2s ease;
}

.side-menu-group:hover .side-menu-heading {
  background: #e2dbda;
}

.side-menu-group.active:hover .side-menu-heading {
  background: transparent;
}

.side-menu-icon {
  position: relative;
  left: -1px;
}

.side-menu-label {
  flex: 1;
  min-width: 0;
}

.side-menu-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.side-menu-group.active .side-menu-chevron {
  transform: rotate(90deg);
}

.side-menu-sub {
  display: block;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 100%;
  width: 240px;
  padding: 8px 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 16px 2px rgba(0, 0, 0, 0.12), 0 6px 7px -8px rgba(0, 0, 0, 0.12), 0 0 6px 0 rgba(0, 0, 0, 0.08);
  z-index: 100;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.side-menu-group:hover .side-menu-sub {
  visibility: visible;
  opacity: 1;
}

.side-menu-group.active .side-menu-sub {
  visibility: visible;
  opacity: 1;
  position: static;
  width: auto;
  padding: 0 16px 16px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.side-menu-sub-item {
  display: block;
  height: 36px;
  line-height: 36px;
  margin: 2px 0;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 400;
  color: #10131c;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.2s ease;
}

.side-menu-sub-item:hover {
  background: #e2dbda;
  border-radius: 6px;
}

.side-menu-sub-item.current {
  background: #e2dbda;
  border-radius: 6px;
}

/* フライアウト(非active)のサブメニュー内ホバーは角丸なし */
.side-menu-group:not(.active) .side-menu-sub-item:hover {
  border-radius: 0;
}

/* 区切り線: クリック範囲(項目の箱)は変えず、線をmarginの隙間に描画して上下に余白を取る */
.side-menu-sub-item.menu-contents-boundary {
  border-top: 0;
  margin-top: 16px;
  position: relative;
  overflow: visible;
}

.side-menu-sub-item.menu-contents-boundary::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  border-top: 1px dashed #dddfea;
  pointer-events: none;
}

/* Sidebar: footer links */

.side-footer-links {
  border-top: 1px solid #dddfea;
  border-bottom: 1px solid #dddfea;
  padding: 23px 0;
}

.side-footer-link-item {
  display: block;
  width: fit-content;
  height: 32px;
  line-height: 32px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 400;
  color: #10131c;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.side-footer-link-item:hover {
  opacity: 0.5;
}

/* Sidebar: banners */

.side-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 44px 16px;
}

/* =============================================
   Nosession pages: centered content wrapper
   ============================================= */

.login-container {
  width: 100%;
  max-width: 600px;
  padding: 40px 16px;
  margin: 0 auto;
}

