/* ============================================================
 * common.css
 * 共通CSS - ヘッダー/フッター/グリッド背景/ボタン/ベーススタイル等
 * Common styles shared across all pages
 * ============================================================ */

/* ------------------------------------------------------------
 * CSS カスタムプロパティ（認証ページ用）
 * Auth page CSS custom properties
 * ------------------------------------------------------------ */
:root { --auth-bg-primary: #0f172a; --auth-bg-secondary: #1e293b; --auth-text-primary: #ffffff; --auth-text-secondary: rgba(255, 255, 255, 0.6); --auth-text-muted: rgba(255, 255, 255, 0.4); --auth-accent: #22d3ee; --auth-accent-hover: #67e8f9; --auth-border: rgba(255, 255, 255, 0.2); --auth-input-bg: rgba(255, 255, 255, 0.05); --auth-card-bg: rgba(255, 255, 255, 0.1); --auth-glow-cyan: rgba(34, 211, 238, 0.1); --auth-glow-blue: rgba(59, 130, 246, 0.1); }

/* ------------------------------------------------------------
 * CSS カスタムプロパティ（ダッシュボード/マニュアル共通）
 * Dashboard/Manual shared CSS custom properties
 * ------------------------------------------------------------ */
:root { --dash-bg-primary: #0f172a; --dash-bg-secondary: #1e293b; --dash-glass: rgba(255, 255, 255, 0.1); --dash-glass-strong: rgba(255, 255, 255, 0.15); --dash-glass-border: rgba(255, 255, 255, 0.2); --dash-glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); --dash-text-primary: #ffffff; --dash-text-secondary: rgba(255, 255, 255, 0.7); --dash-text-muted: rgba(255, 255, 255, 0.5); --dash-accent: #22d3ee; --dash-accent-light: #67e8f9; --dash-accent-glow: rgba(34, 211, 238, 0.15); --dash-accent-bg: rgba(34, 211, 238, 0.15); --dash-blue-glow: rgba(59, 130, 246, 0.15); --dash-border: rgba(255, 255, 255, 0.1); --dash-sidebar-width: 260px; --dash-spacing: 24px; }

/* ------------------------------------------------------------
 * フォントインポート
 * Font imports
 * ------------------------------------------------------------ */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap");

/* ------------------------------------------------------------
 * Tailwind CSSリセット・ベーススタイル
 * Tailwind CSS reset and base styles
 * ------------------------------------------------------------ */
*, ::before, ::after { --tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; --tw-rotate: 0; --tw-skew-x: 0; --tw-skew-y: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-pan-x: ; --tw-pan-y: ; --tw-pinch-zoom: ; --tw-scroll-snap-strictness: proximity; --tw-gradient-from-position: ; --tw-gradient-via-position: ; --tw-gradient-to-position: ; --tw-ordinal: ; --tw-slashed-zero: ; --tw-numeric-figure: ; --tw-numeric-spacing: ; --tw-numeric-fraction: ; --tw-ring-inset: ; --tw-ring-offset-width: 0px; --tw-ring-offset-color: #fff; --tw-ring-color: rgb(59 130 246 / 0.5); --tw-ring-offset-shadow: 0 0 #0000; --tw-ring-shadow: 0 0 #0000; --tw-shadow: 0 0 #0000; --tw-shadow-colored: 0 0 #0000; --tw-blur: ; --tw-brightness: ; --tw-contrast: ; --tw-grayscale: ; --tw-hue-rotate: ; --tw-invert: ; --tw-saturate: ; --tw-sepia: ; --tw-drop-shadow: ; --tw-backdrop-blur: ; --tw-backdrop-brightness: ; --tw-backdrop-contrast: ; --tw-backdrop-grayscale: ; --tw-backdrop-hue-rotate: ; --tw-backdrop-invert: ; --tw-backdrop-opacity: ; --tw-backdrop-saturate: ; --tw-backdrop-sepia: ; --tw-contain-size: ; --tw-contain-layout: ; --tw-contain-paint: ; --tw-contain-style: ; }
::backdrop { --tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; --tw-rotate: 0; --tw-skew-x: 0; --tw-skew-y: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-pan-x: ; --tw-pan-y: ; --tw-pinch-zoom: ; --tw-scroll-snap-strictness: proximity; --tw-gradient-from-position: ; --tw-gradient-via-position: ; --tw-gradient-to-position: ; --tw-ordinal: ; --tw-slashed-zero: ; --tw-numeric-figure: ; --tw-numeric-spacing: ; --tw-numeric-fraction: ; --tw-ring-inset: ; --tw-ring-offset-width: 0px; --tw-ring-offset-color: #fff; --tw-ring-color: rgb(59 130 246 / 0.5); --tw-ring-offset-shadow: 0 0 #0000; --tw-ring-shadow: 0 0 #0000; --tw-shadow: 0 0 #0000; --tw-shadow-colored: 0 0 #0000; --tw-blur: ; --tw-brightness: ; --tw-contrast: ; --tw-grayscale: ; --tw-hue-rotate: ; --tw-invert: ; --tw-saturate: ; --tw-sepia: ; --tw-drop-shadow: ; --tw-backdrop-blur: ; --tw-backdrop-brightness: ; --tw-backdrop-contrast: ; --tw-backdrop-grayscale: ; --tw-backdrop-hue-rotate: ; --tw-backdrop-invert: ; --tw-backdrop-opacity: ; --tw-backdrop-saturate: ; --tw-backdrop-sepia: ; --tw-contain-size: ; --tw-contain-layout: ; --tw-contain-paint: ; --tw-contain-style: ; }
*, ::before, ::after { box-sizing: border-box; border-width: 0px; border-style: solid; border-color: rgb(229, 231, 235); }
::before, ::after { --tw-content: ''; }
html, :host { line-height: 1.5; text-size-adjust: 100%; tab-size: 4; font-family: var(--font-sans); font-feature-settings: normal; font-variation-settings: normal; -webkit-tap-highlight-color: transparent; }
body { margin: 0px; line-height: inherit; }
hr { height: 0px; color: inherit; border-top-width: 1px; }
abbr:where([title]) { text-decoration: underline dotted; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
code, kbd, samp, pre { font-family: var(--font-mono); font-feature-settings: normal; font-variation-settings: normal; font-size: 1em; }
small { font-size: 80%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -0.25em; }
sup { top: -0.5em; }
table { text-indent: 0px; border-color: inherit; border-collapse: collapse; }
button, input, optgroup, select, textarea { font-family: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; letter-spacing: inherit; color: inherit; margin: 0px; padding: 0px; }
button, select { text-transform: none; }
button, input:where([type="button"]), input:where([type="reset"]), input:where([type="submit"]) { appearance: button; background-color: transparent; background-image: none; }
progress { vertical-align: baseline; }
::-webkit-inner-spin-button, ::-webkit-outer-spin-button { height: auto; }
[type="search"] { appearance: textfield; outline-offset: -2px; }
::-webkit-search-decoration { appearance: none; }
::-webkit-file-upload-button { appearance: button; font: inherit; }
summary { display: list-item; }
blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre { margin: 0px; }
fieldset { margin: 0px; padding: 0px; }
legend { padding: 0px; }
ol, ul, menu { list-style: none; margin: 0px; padding: 0px; }
dialog { padding: 0px; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { opacity: 1; color: rgb(156, 163, 175); }
button, [role="button"] { cursor: pointer; }
:disabled { cursor: default; }
img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
[hidden]:where(:not([hidden="until-found"])) { display: none; }
* { --tw-border-opacity: 1; border-color: hsl(var(--border) / var(--tw-border-opacity, 1)); }
body { --tw-bg-opacity: 1; background-color: hsl(var(--background) / var(--tw-bg-opacity, 1)); --tw-text-opacity: 1; color: hsl(var(--foreground) / var(--tw-text-opacity, 1)); -webkit-font-smoothing: antialiased; font-family: var(--font-body); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; }

/* ------------------------------------------------------------
 * 404ページ（Not Found）
 * 404 Not Found page styles
 * ------------------------------------------------------------ */
.notfound-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgb(15, 23, 42) 0%, rgb(30, 41, 59) 100%); position: relative; overflow: hidden; padding: 2rem; }
.notfound-page::before { content: ""; position: absolute; inset: 0px; background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; z-index: 1; }
.notfound-glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; opacity: 0.6; }
.notfound-glow-1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(34, 211, 238, 0.25) 0%, transparent 70%); top: -150px; left: -100px; }
.notfound-glow-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%); bottom: -100px; right: -100px; }
.notfound-container { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.notfound-card { background: linear-gradient(rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 1rem; padding: 2rem 2.5rem; text-align: center; position: relative; overflow: hidden; box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 24px; max-width: 380px; width: 100%; }
.notfound-card::before { content: ""; position: absolute; top: 0px; left: 0px; right: 0px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); }
.notfound-icon { width: 48px; height: 48px; margin: 0px auto 1rem; display: flex; align-items: center; justify-content: center; background: rgba(34, 211, 238, 0.12); border-radius: 50%; color: rgb(34, 211, 238); }
.notfound-icon svg { width: 24px; height: 24px; }
.notfound-code { font-size: 3rem; font-weight: 700; background: linear-gradient(135deg, rgb(34, 211, 238) 0%, rgb(59, 130, 246) 100%) text; -webkit-text-fill-color: transparent; margin: 0px 0px 0.25rem; line-height: 1; letter-spacing: -0.02em; }
.notfound-title { font-size: 1.125rem; font-weight: 600; color: rgba(255, 255, 255, 0.9); margin: 0px 0px 0.5rem; }
.notfound-description { font-size: 0.875rem; color: rgba(255, 255, 255, 0.5); margin: 0px 0px 1.5rem; line-height: 1.5; }
.notfound-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.notfound-btn { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.625rem 1rem; border-radius: 0.5rem; font-size: 0.8125rem; font-weight: 500; text-decoration: none; transition: all 0.2s ease 0s; cursor: pointer; border: none; }
.notfound-btn svg { width: 16px; height: 16px; }
.notfound-btn-primary { background: linear-gradient(135deg, rgb(34, 211, 238) 0%, rgb(6, 182, 212) 100%); color: rgb(15, 23, 42); box-shadow: rgba(34, 211, 238, 0.3) 0px 4px 16px; }
.notfound-btn-primary:hover { transform: translateY(-2px); box-shadow: rgba(34, 211, 238, 0.4) 0px 6px 24px; }
.notfound-btn-secondary { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.9); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(8px); }
.notfound-btn-secondary:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.3); }
.notfound-decoration { display: none; }
@media (max-width: 640px) {
  .notfound-card { padding: 1.5rem; }
  .notfound-code { font-size: 2.5rem; }
  .notfound-title { font-size: 1rem; }
  .notfound-actions { flex-direction: column; gap: 0.5rem; }
  .notfound-btn { width: 100%; justify-content: center; }
  .notfound-icon { width: 40px; height: 40px; }
  .notfound-icon svg { width: 20px; height: 20px; }
}

/* ------------------------------------------------------------
 * 画像ライトボックス
 * Image lightbox overlay
 * ------------------------------------------------------------ */
.image-lightbox { position: fixed; top: 0px; left: 0px; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); display: flex; align-items: center; justify-content: center; z-index: 10000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease 0s, visibility 0.3s ease 0s; }
.image-lightbox.active { opacity: 1; visibility: visible; }
.lightbox-image { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: 8px; box-shadow: rgba(0, 0, 0, 0.5) 0px 20px 60px; }
.lightbox-close { position: absolute; top: 20px; right: 30px; font-size: 48px; color: rgb(255, 255, 255); background: none; border: none; cursor: pointer; line-height: 1; opacity: 0.8; transition: opacity 0.2s ease 0s; }
.lightbox-close:hover { opacity: 1; }
@media (max-width: 768px) {
  .lightbox-close { top: 10px; right: 15px; font-size: 36px; }
  .lightbox-image { max-width: 95%; max-height: 85%; }
}

/* ------------------------------------------------------------
 * サイドバーオーバーレイ
 * Sidebar overlay (mobile)
 * ------------------------------------------------------------ */
.sidebar-overlay { display: none; position: fixed; inset: 0px; background: rgba(0, 0, 0, 0.5); z-index: 999; }
@media (max-width: 1024px) {
  .sidebar-overlay.visible { display: block; }
}