/*
Theme Name: AXIA
Theme URI: http://www.albero-ai.media/test/
Author: Albero
Description: Multi-Edition Writing Experience Theme
Version: 1.0.0
Text Domain: axia
*/


:root {
    --cw-bg: #f4f2f0;
    --cw-text: #2e2e2e;
    --cw-accent: #bfa37e;
    --cw-panel-bg: rgba(255,255,255,0.6);
    --cw-radius: 2px;
    --header-h: 0px;
    --sidebar-w: 0px;
}

body { background: var(--cw-bg); color: var(--cw-text); margin: 0; }
* { box-sizing: border-box; }

/* レイアウト構造 (PC) */
@media (min-width: 768px) {
    .main-content {
        margin-left: var(--sidebar-w) !important;
        margin-top: var(--header-h) !important;
        width: calc(100% - var(--sidebar-w)) !important;
        padding: 0;
    }
    body.edition-guild { --sidebar-w: 80px; }
    body.edition-mentor { --sidebar-w: 0px; }
    body.edition-writer { --sidebar-w: 100px; }
    body.edition-salon { --header-h: 80px; --sidebar-w: 0px; }
}

/* モバイル */
@media (max-width: 767px) {
    .main-content { margin: 0 !important; padding-top: 60px !important; }
    .guild-sidebar, .mentor-sidebar, .writer-sidebar { display: none !important; }
    .mobile-header { display: flex !important; }
    body.edition-salon .main-content { padding-top: 80px !important; }

}

/* 通知ドロップダウン */
.notification-dropdown {
    display: none; position: absolute; top: 100%; right: 0; width: 280px;
    background: #fff; border: 1px solid #eee; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 9999; padding: 0; color: #333;
    margin-top: 10px; border-radius: 4px;
}
/* JSでactiveクラスがつくと表示 */
.notification-dropdown.active { display: block !important; }

/* エディション別ドロップダウン調整 */
body.edition-guild .notification-dropdown { background: #0a0a0a; border-color: #333; color: #fff; }

/* 共通パーツ */
.glass-panel { background: var(--cw-panel-bg); border-radius: var(--cw-radius); padding: 24px; margin-bottom: 24px; }
.btn-primary { background: var(--cw-accent); color: #fff; padding: 10px 24px; border-radius: var(--cw-radius); text-decoration: none; cursor: pointer; display: inline-block; border: none; }
.hidden { display: none !important; }


/* ==========================================================================
   WordPress 管理バー(Admin Bar) 重なり防止 Fix
   ========================================================================== */
/* PCサイズ時の管理バー (高さ32px) 対応 */
body.admin-bar .mobile-header,
body.admin-bar .salon-header {
    top: 32px !important;
}

body.admin-bar .writer-sidebar,
body.admin-bar .guild-sidebar,
body.admin-bar .mentor-sidebar {
    top: 32px !important;
    height: calc(100vh - 32px) !important;
}

body.admin-bar .header-actions {
    margin-top: 32px !important;
}

/* モバイル・タブレットサイズ時の管理バー (高さ46px) 対応 */
@media screen and (max-width: 782px) {
    body.admin-bar .mobile-header,
    body.admin-bar .salon-header {
        top: 46px !important;
    }
    
    body.admin-bar .writer-sidebar,
    body.admin-bar .guild-sidebar,
    body.admin-bar .mentor-sidebar {
        top: 46px !important;
        height: calc(100vh - 46px) !important;
    }
    
    body.admin-bar .header-actions {
        margin-top: 46px !important;
    }
}
/* ------------------------------------------------------------
   Layout fixes (mentor centering + consistent footer)
------------------------------------------------------------ */

/* Mentor does not use a fixed sidebar; avoid left blank space. */
body.edition-mentor .main-content {
  margin-left: 0;
  width: 100%;
}

/* Center mentor dashboard/page shells if present */
body.edition-mentor .mentor-shell,
body.edition-mentor .mentor-dashboard {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Footer (replaces Tailwind utility classes in templates) */
.axia-footer {
  border-top: 1px solid #e9ecef;
  background: #f7f7f7;
  color: #333;
  padding: 28px 0;
}
.axia-footer__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.axia-footer__logo {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #0a7d57;
}
.axia-footer__reg { font-size: 0.75em; vertical-align: super; }
.axia-footer__desc { margin: 10px 0 0; color: #555; line-height: 1.6; }
.axia-footer__nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 14px; flex-wrap: wrap; }
.axia-footer__nav a { color: #0a7d57; text-decoration: none; }
.axia-footer__nav a:hover { text-decoration: underline; }
.axia-footer__copy { margin: 8px 0 0; color: #777; font-size: 13px; }

@media (min-width: 1024px) {
  .axia-footer__inner {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}
