/* =========================
   GL Notes - notes only
   固定ページ + gl_note 対応
========================= */

/* 対象ページ */
.page-slug-notes_post,
.page-slug-notes_list,
.single-gl_note,
.post-type-archive-gl_note {
  background: var(--bg);
}

/* =========================
   Lightning不要要素を消す
========================= */

/* タイトル・パンくず・ヘッダー */
.page-slug-notes_post .page-header,
.page-slug-notes_post .entry-header,
.page-slug-notes_post .archive-header,
.page-slug-notes_post .breadcrumb,
.page-slug-notes_post .vk_post_title_outer,
.page-slug-notes_post .vk_post_imgOuter,
.page-slug-notes_post .entry-title,
.page-slug-notes_post .page-title,

.page-slug-notes_list .page-header,
.page-slug-notes_list .entry-header,
.page-slug-notes_list .archive-header,
.page-slug-notes_list .breadcrumb,
.page-slug-notes_list .vk_post_title_outer,
.page-slug-notes_list .vk_post_imgOuter,
.page-slug-notes_list .entry-title,
.page-slug-notes_list .page-title,

.single-gl_note .page-header,
.single-gl_note .entry-header,
.single-gl_note .archive-header,
.single-gl_note .breadcrumb,
.single-gl_note .vk_post_title_outer,
.single-gl_note .vk_post_imgOuter,
.single-gl_note .entry-title,
.single-gl_note .page-title,

.post-type-archive-gl_note .page-header,
.post-type-archive-gl_note .entry-header,
.post-type-archive-gl_note .archive-header,
.post-type-archive-gl_note .breadcrumb,
.post-type-archive-gl_note .vk_post_title_outer,
.post-type-archive-gl_note .vk_post_imgOuter,
.post-type-archive-gl_note .entry-title,
.post-type-archive-gl_note .page-title {
  display: none !important;
}

/* =========================
   レイアウト調整
========================= */

/* サイドバー削除 */
.page-slug-notes_post .subSection,
.page-slug-notes_list .subSection,
.single-gl_note .subSection,
.post-type-archive-gl_note .subSection {
  display: none;
}

/* メインを全幅 */
.page-slug-notes_post .mainSection,
.page-slug-notes_list .mainSection,
.single-gl_note .mainSection,
.post-type-archive-gl_note .mainSection {
  width: 100%;
  float: none;
  margin: 0;
}

/* コンテナ幅解除 */
.page-slug-notes_post .container,
.page-slug-notes_list .container,
.single-gl_note .container,
.post-type-archive-gl_note .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* 余白調整 */
.page-slug-notes_post .mainSection-base-on,
.page-slug-notes_list .mainSection-base-on,
.single-gl_note .mainSection-base-on,
.post-type-archive-gl_note .mainSection-base-on {
  padding-top: 0;
  padding-bottom: 0;
}

.page-slug-notes_post .entry-body,
.page-slug-notes_list .entry-body,
.single-gl_note .entry-body,
.post-type-archive-gl_note .entry-body {
  margin-top: 0;
  padding: 0;
}

/* =========================
   GL Notesアプリ領域
========================= */

.gl-notes-app {
  width: 100%;
}

/* スマホUI幅 */
.gl-page-shell {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: 90px;
}

/* =========================
   Lightning本文の干渉を抑える
========================= */

.gl-notes-app h1,
.gl-notes-app h2,
.gl-notes-app h3,
.gl-notes-app h4,
.gl-notes-app h5,
.gl-notes-app h6 {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.gl-notes-app p,
.gl-notes-app ul,
.gl-notes-app ol {
  margin: 0;
  padding: 0;
}

.gl-notes-app ul,
.gl-notes-app ol {
  list-style: none;
}

/* =========================
   フォーム軽調整
========================= */

.gl-notes-app input,
.gl-notes-app textarea,
.gl-notes-app select {
  font: inherit;
  color: var(--text);
}

/* =========================
   下部ナビとの重なり対策
========================= */

.gl-bottom-nav {
  z-index: 60;
}

/* =========================
   PC表示の軽調整
========================= */

@media (min-width: 768px) {
  .gl-page-shell {
    box-shadow: 0 0 0 1px rgba(22, 42, 68, 0.05);
  }
}