@charset "utf-8";

/**
 * ============================================================================
 * File: global.css
 * Author: hack.code
 * Version: 1.0.0
 * Last Modified: 2025-11
 * ============================================================================
 */

/* Page Layout Settings */
html, body {
  height: 100%;
}
body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  color: var(--primary-black);
  letter-spacing: .02em;
  background: var(--bg-gray);
  display: flex;
  flex-direction: column;
}

/* Main Content Area */
.main-wrapper {
  flex: 1 0 auto;
}

/* Custom Color Properties */
:root {
  --primary-black: #1a1a1a;
  --soft-black: #333333;
  --dark-gray: #666666;
  --medium-gray: #999999;
  --light-gray: #f5f5f5;
  --bg-gray: #fafafa;
  --border-gray: #e5e5e5;
  --accent-red: #ff4444;
  --accent-pink: #ff6b9d;
  --link-blue: #2879ff;
  --success-green: #10b981;
  --success-bg: #f0fdf4;
  --success-border: #86efac;
  --error-red: #ef4444;
  --error-bg: #fef2f2;
  --error-border: #fca5a5;
  --warning-yellow: #f59e0b;
  --warning-bg: #fffbeb;
  --warning-border: #fcd34d;
}

/* Header Common Styles */
.header-main {
  background: #ffffff;
  border-bottom: 1px solid var(--border-gray);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

/* Logo Styles */
.logo-text {
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--primary-black);
}

/* Navigation Items */
.nav-item-modern {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-red);
  background: rgba(255, 68, 68, .08);
  border: 1px solid var(--border-gray);
  border-radius: 2px;
  transition: all .2s ease;
  position: relative;
  display: flex;
  align-items: center;
}
.nav-item-modern:hover {
  color: var(--primary-black);
  background: var(--light-gray);
}
.nav-item-modern span.material-icons {
  font-size: 16px;
}

/* Search Button Styles */
.search-btn-modern {
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-gray);
  background: #ffffff;
  border: 1px solid var(--border-gray);
  border-radius: 3px;
  transition: all .2s ease;
}
.search-btn-modern:hover {
  color: var(--primary-black);
  background: var(--light-gray);
  border-color: var(--medium-gray);
}
.search-btn-modern.active {
  color: #ffffff;
  background: var(--primary-black);
  border-color: var(--primary-black);
}

/* Search Section */
.search-section-modern {
  max-height: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-gray);
  overflow: hidden;
  transition: all .3s ease;
}
.search-section-modern.open {
  padding: 20px 0;
  max-height: 100px;
}

/* Modern Search Box */
.search-box-modern {
  background: var(--light-gray);
  border: 1px solid transparent;
  border-radius: 3px;
  transition: all .2s ease;
  position: relative;
}
.search-box-modern:focus-within {
  background: #ffffff;
  border-color: var(--primary-black);
  box-shadow: 0 0 0 2px rgba(26, 26, 26, .1);
}

/* Search Error */
.search-input-error-msg {
  position: absolute;
  right: 100px;
  top: 10px;
  background: #fdd;
  color: #990000;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 99999;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 24px;
  padding: 12px 20px;
  font-size: 13px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  display: flex;
  align-items: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  gap: 8px;
}
.breadcrumb-item {
  text-decoration: none;
  color: var(--dark-gray);
  transition: color .2s ease;
}
.breadcrumb-item:hover {
  color: var(--link-blue);
}
.breadcrumb-separator {
  color: var(--medium-gray);
}
.breadcrumb-current {
  font-weight: 500;
  color: var(--primary-black);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Contents Section */
.contents-section {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

/* Section Title */
.section-title {
  margin-bottom: 20px;
  padding-bottom: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-black);
  border-bottom: 2px solid var(--primary-black);
}

/* Category Badge Common */
.category-badge {
  margin: 0;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  color: var(--dark-gray);
  background: var(--light-gray);
  border: 1px solid var(--border-gray);
  border-radius: 2px;
  transition: all .15s ease;
  display: inline-block;
}
.category-badge:hover {
  color: #ffffff;
  background: var(--primary-black);
  border-color: var(--primary-black);
}
.category-badges {
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Link Button Common */
.link-button {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--dark-gray);
  background: #ffffff;
  border: 1px solid var(--border-gray);
  border-radius: 3px;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.link-button:hover {
  color: #ffffff;
  background: var(--primary-black);
  border-color: var(--primary-black);
}
.link-button svg {
  width: 16px;
  height: 16px;
}

/* Footer Common */
.footer-modern {
  margin-top: 48px;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid var(--border-gray);
}
.footer-menu-section {
  padding: 32px 0;
  border-top: 1px solid var(--border-gray);
}
.footer-menu-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-menu-item {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--dark-gray);
  border-radius: 3px;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-menu-item:hover {
  color: var(--primary-black);
  background: var(--light-gray);
}
.footer-bottom {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.footer-logo-section {
  margin-bottom: 12px;
}
.footer-copyright {
  font-size: 12px;
  color: var(--dark-gray);
}
.footer-content {
  padding: 24px 0;
  font-size: 12px;
  text-align: center;
  color: var(--dark-gray);
}

/* Common Utility Classes */

/* Icon Styles */
.icon-small {
  width: 16px;
  height: 16px;
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-slide {
  animation: slideDown .3s ease;
}

/* Desktop/Mobile Display Toggle */
.desktop-only {
  display: block;
}
.mobile-only {
  display: none;
}

/* Mobile Padding Adjustment Classes */
.mobile-padding-fix {
  padding-top: 0;
}
.mobile-padding-adjust {
  padding-top: 0;
}