/* =========================================================
   OLUOLI Theme - Base CSS
   CSSカスタムプロパティ（フォールバック）とリセット
   ========================================================= */

/* ── デフォルト変数（Dynamic CSS で上書き） */
:root {
  --oluoli-color-main:    #1a1a1a;
  --oluoli-color-main2:   #333333;
  --oluoli-color-accent:  #555555;
  --oluoli-color-text:    #111111;
  --oluoli-color-bg:      #ffffff;
  --oluoli-color-surface: #f7f7f7;

  --oluoli-header-bg:          rgba(255,255,255,0.95);
  --oluoli-header-text:        #1e1e2e;
  --oluoli-header-nav:         #1e1e2e;
  --oluoli-header-nav-hover:   #666666;
  --oluoli-header-h:           70px;
  --oluoli-header-h-sp:        56px;
  --oluoli-header-sticky-h:    56px;
  --oluoli-header-blur:        12px;
  --oluoli-glass-border:       rgba(255,255,255,0.3);
  --oluoli-float-top:          20px;
  --oluoli-float-side:         24px;
  --oluoli-float-radius:       999px;
  --oluoli-side-header-w:      260px;
  --oluoli-submenu-bg:         rgba(255,255,255,0.98);
  --oluoli-submenu-text:       #1e1e2e;

  --oluoli-site-w:    1200px;
  --oluoli-content-w: 860px;
  --oluoli-sidebar-w: 300px;

  --oluoli-radius:     0px;
  --oluoli-radius-btn: 0px;

  --oluoli-nav-fz:  14px;
  --oluoli-nav-fw:  500;
  --oluoli-nav-gap: 32px;

  --oluoli-footer-bg:     #111111;
  --oluoli-footer-text:   #ffffff;
  --oluoli-footer-link:   rgba(255,255,255,0.7);
  --oluoli-footer-bottom: rgba(0,0,0,0.3);

  --oluoli-fz: 16px;
  --oluoli-lh: 1.8;
  --oluoli-ls: 0em;

  --oluoli-anim-dur:   600ms;
  --oluoli-anim-delay: 100ms;

  --oluoli-trans: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── モダンリセット */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: var(--oluoli-fz);
  line-height: var(--oluoli-lh);
  letter-spacing: var(--oluoli-ls);
  color: var(--oluoli-color-text);
  background-color: var(--oluoli-color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--oluoli-color-main); text-decoration: none; transition: var(--oluoli-trans); }
a:hover { opacity: 0.8; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: transparent; font-family: inherit; }

/* ── コンテナ */
.o-container {
  width: 100%;
  max-width: var(--oluoli-site-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

/* ── ページラッパー */
.o-page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.o-site-content { flex: 1; padding-top: var(--oluoli-header-h); }

/* サイドバー型ヘッダー時 */
.has-side-header .o-site-content { padding-top: 0; }
.has-header-sidebar-left .o-site-content  { margin-left: var(--oluoli-side-header-w); }
.has-header-sidebar-right .o-site-content { margin-right: var(--oluoli-side-header-w); }

/* フローティング型 */
.has-header-float .o-site-content { padding-top: 0; }

/* ── コンテンツ・サイドバーグリッド */
.l-content {
  display: grid;
  grid-template-columns: 1fr var(--oluoli-sidebar-w);
  gap: clamp(24px, 4vw, 48px);
  max-width: var(--oluoli-site-w);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 60px) clamp(16px, 4vw, 40px);
}
.sidebar-left .l-content { grid-template-columns: var(--oluoli-sidebar-w) 1fr; }
.sidebar-none .l-content,
.l-content--full { grid-template-columns: 1fr; max-width: var(--oluoli-content-w); }
.l-main { min-width: 0; }

@media (max-width: 960px) {
  .l-content { grid-template-columns: 1fr; }
  .has-header-sidebar-left .o-site-content,
  .has-header-sidebar-right .o-site-content { margin: 0; padding-top: var(--oluoli-header-h-sp); }
}

/* ── スクリーンリーダー専用 */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }