/* =============================================
   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;
}

/* ドメイン情報の dl/dt/dd 化に伴う調整（従来の横一列の見た目を維持）。
   dl/dd の既定マージンを除去し、dl をインライン化して name/ID と同じ行に流す。
   dt/dd の inline-block・各スタイルは既存の .account-header-inner-title /
   .account-header-inner-domain ルールがそのまま適用される。 */
.account-header-inner-domains {
  display: inline;
  margin: 0;
  padding: 0;
}

.account-header-inner-domains dd {
  margin: 0;
}

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;
}

/* ログイン履歴は button 化（href="javascript:" の排除）。
   隣の <a>（ログアウト）と見た目を揃えるための button 固有リセット。
   ログアウトには影響させないため #HEADER_NAVI_LOG 単体で指定する。 */
#HEADER_NAVI_LOG {
  box-sizing: content-box;
  margin: 0;
  font-family: inherit;
  cursor: pointer;
}

.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-container の踏襲）。
   下限 788px = #MAIN_CONTENTS(740px) + .main 左右padding(24px*2)。
   ※ rental-server レイアウト(border-box)では 788px が .main 全体幅。default レイアウト
      (content-box・グローバルリセット無し)では実効 836px(=788+padding)になるが、
      いずれも #MAIN_CONTENTS 740px は確保される。
   これで画面を狭めても内容がはみ出さず横スクロールになる。広い幅では flex:1 で伸びるため見た目は不変。
   ログイン(nosession)画面は新デザインのまま縮小可とするため対象外。 */
.body-wrap:not(.has-nosession) .main {
  min-width: 788px;
}

#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;
}

/* ul/li 化に伴うリストスタイルのリセット（見た目は従来の div 構造を維持） */
.side-menu-section {
  margin: 0;
  padding: 0;
  list-style: none;
}

.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,
.side-menu-group:focus-within .side-menu-heading {
  background: #e2dbda;
}

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

/* キーボード操作時のフォーカス可視化 */
.side-menu-heading:focus-visible,
.side-menu-sub-item:focus-visible {
  outline: 2px solid #1a6dff;
  outline-offset: -2px;
}

.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;
  margin: 0;
  list-style: none;
  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,
.side-menu-group:focus-within .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;
}

/* サブ項目は min-height ではなく上下paddingで高さを確保し、複数行になっても
   上下に余白が付くようにする（展開・フライアウト共通） */
.side-menu-sub-item {
  display: flex;
  align-items: center;
  line-height: 1.4;
  margin: 2px 0;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 400;
  color: #10131c;
  text-decoration: none;
  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;
}

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

/* Sidebar: footer links */

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

/* リンク群を ul/li 化（nav ランドマークにはしない=主メニューに絞る）。
   見た目は従来の縦積みを維持するためリストスタイルをリセット。 */
.side-footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-footer-link-item {
  display: block;
  width: fit-content;
  height: 32px;
  line-height: 32px;
  margin: 6px 0;
  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;
}

/* =============================================
   通知帯・ブラウザ警告（ヘッダ直下の共通枠UI）
   app-header.html.php / displayBrowserAlert() が出力する要素のスタイル。
   従来 init.css のみに定義されており、init.css を読まない
   rental-server レイアウトでは未スタイルになるため app-header.css に移設。
   ※ default 経路は init.css も読むため一時的に重複するが、値が同一で影響なし。
   ============================================= */

.notification-blue {
  background-color: #147ecc;
}

.notification-blue__inner {
  display: flex;
  width: 950px;
  height: 40px;
  margin: 0 auto;
}

.notification-blue__icon {
  width: 15px;
  height: 15px;
  margin-top: 12px;
  margin-right: 5px;
}

.notification-blue__text {
  font-weight: 700;
  color: #fff;
}

a.notification-blue__link {
  margin-top: 12px;
  margin-left: 13px;
  color: #fff;
}

.update-browser-announce {
  box-sizing: border-box;
  position: relative;
  z-index: 10;
  width: 100%;
  height: 4em;
  line-height: 4em;
  text-align: center;
  background-color: #fffdc8;
  color: #ff3a76;
  font-weight: 700;
  top: 0;
}

.update-browser-announce-close {
  display: inline-block;
  margin-left: 0.8em;
  text-decoration: none;
  cursor: pointer;
}

