/* 3DCP Portal - LINE Design Language */
:root {
  --line-green: #06C755;
  --line-green-dark: #05a648;
  --line-green-light: #e8f9ef;
  --line-bg: #f7f8f9;
  --line-card: #ffffff;
  --line-border: #e5e5e5;
  --line-text: #111111;
  --line-text-secondary: #666666;
  --line-text-tertiary: #999999;
  --line-red: #ff5551;
  --line-orange: #ff9500;
  --line-blue: #0084ff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background: var(--line-bg);
  color: var(--line-text);
  line-height: 1.6;
  font-size: 14px;
}

a { color: var(--line-green); text-decoration: none; }
a:hover { color: var(--line-green-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 16px; }

/* Header */
.header {
  background: var(--line-green);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 20px;
  font-weight: 700;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.nav { display: flex; gap: 4px; }

.nav a {
  color: rgba(255,255,255,0.9);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.nav a:hover, .nav a.active {
  background: rgba(255,255,255,0.2);
  color: white;
}

.header-right { display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-white {
  background: white;
  color: var(--line-green);
}

.btn-white:hover {
  background: #f0f0f0;
  color: var(--line-green-dark);
}

.btn-primary {
  background: var(--line-green);
  color: white;
}

.btn-primary:hover {
  background: var(--line-green-dark);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--line-green);
  color: var(--line-green);
}

.btn-outline:hover {
  background: var(--line-green);
  color: white;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--line-green) 0%, #04a045 100%);
  padding: 60px 0;
  color: white;
  text-align: center;
}

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Cards */
.card {
  background: var(--line-card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--line-green);
  border-radius: 2px;
}

/* Grid */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero h1 { font-size: 28px; }
}

/* Feature Cards */
.feature-card {
  background: var(--line-card);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--line-green-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: var(--line-text-secondary);
}

/* News List */
.news-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-border);
}

.news-item:last-child { border-bottom: none; }

.news-date {
  font-size: 12px;
  color: var(--line-text-tertiary);
  white-space: nowrap;
}

.news-tag {
  display: inline-block;
  background: var(--line-green-light);
  color: var(--line-green);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin-right: 8px;
}

.news-title {
  font-size: 14px;
  color: var(--line-text);
}

.news-title:hover { color: var(--line-green); }

/* Stats */
.stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 40px 0;
  background: var(--line-card);
  margin: 32px 0;
  border-radius: 16px;
}

.stat-item { text-align: center; }

.stat-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--line-green);
}

.stat-label {
  font-size: 13px;
  color: var(--line-text-secondary);
  margin-top: 4px;
}

/* Footer */
.footer {
  background: var(--line-text);
  color: white;
  padding: 40px 0 24px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

.footer-links a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* Section */
.section {
  padding: 48px 0;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { flex-wrap: wrap; gap: 24px; }
}

/* Breadcrumb */
.breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--line-border);
  padding: 12px 24px;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list a {
  color: var(--line-green);
  text-decoration: none;
}

.breadcrumb-list a:hover {
  text-decoration: underline;
}

.breadcrumb-list .current {
  color: var(--line-text-secondary);
}

.breadcrumb-sep {
  color: #ccc;
}

/* Page Header (sub pages) */
.page-header {
  background: #fff;
  border-bottom: 1px solid var(--line-border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 60px;
  z-index: 90;
}

.page-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-logo {
  width: 32px;
  height: 32px;
  background: var(--line-green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.page-title {
  font-size: 18px;
  font-weight: 700;
}

.page-subtitle {
  font-size: 13px;
  color: var(--line-text-secondary);
}

/* Page Layout (Sidebar + Main) */
.page-container {
  display: flex;
}

.page-sidebar {
  width: 200px;
  background: #fff;
  border-right: 1px solid var(--line-border);
  min-height: calc(100vh - 188px);
  padding: 16px 0;
  flex-shrink: 0;
  position: sticky;
  top: 124px;
  align-self: flex-start;
}

.page-main {
  flex: 1;
  padding: 24px;
  min-width: 0;
  background: var(--line-bg);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  color: var(--line-text-secondary);
  font-size: 14px;
  border-left: 3px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
}

.sidebar-item:hover {
  background: var(--line-bg);
  color: var(--line-text);
}

.sidebar-item.active {
  background: var(--line-green-light);
  color: var(--line-green);
  font-weight: 600;
  border-left-color: var(--line-green);
}

.sidebar-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Content Card */
.content-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line-border);
  padding: 24px;
  margin-bottom: 16px;
}

.content-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.content-card-desc {
  font-size: 14px;
  color: var(--line-text-secondary);
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 768px) {
  .page-sidebar {
    display: none;
  }
  .page-main {
    padding: 16px;
  }
}
