/* ===========================================
   Pages CSS - 各サービスページ用スタイル
   =========================================== */

/* Page Hero */
.page-hero {
  padding: calc(var(--header-height) + var(--spacing-xl)) 0 var(--spacing-xl);
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1a365d 100%);
  color: var(--white);
  text-align: center;
}

.page-hero-ai { background: linear-gradient(135deg, #4285F4 0%, #1a365d 100%); }
.page-hero-edu { background: linear-gradient(135deg, #48BB78 0%, #1a4d3a 100%); }
.page-hero-pc { background: linear-gradient(135deg, #F5A623 0%, #8b5a00 100%); }
.page-hero-saas { background: linear-gradient(135deg, #2196F3 0%, #0d47a1 100%); }

.breadcrumb {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-bottom: var(--spacing-md);
}

.breadcrumb a {
  color: var(--white);
  text-decoration: none;
}

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

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: var(--spacing-sm);
}

.page-hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* Page Intro */
.page-intro {
  padding: var(--spacing-xl) 0;
  background: var(--white);
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
}

.intro-content .lead {
  font-size: 1.25rem;
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.intro-content p {
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: var(--spacing-sm);
}

/* Key Numbers */
.key-numbers {
  padding: var(--spacing-xl) 0;
  background: var(--bg-light);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-lg);
  text-align: center;
}

.number-item .number {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 900;
  color: var(--primary-blue);
  display: block;
}

.number-item .unit {
  font-size: 0.5em;
  font-weight: 700;
}

.number-item .label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: block;
  margin-top: var(--spacing-xs);
}

/* Services Detail */
.services-detail {
  padding: var(--spacing-xxl) 0;
  background: var(--white);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.detail-item {
  background: var(--bg-light);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
}

.detail-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.detail-icon {
  margin-bottom: var(--spacing-md);
}

.detail-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.detail-item p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* Case Highlight */
.case-highlight {
  padding: var(--spacing-xxl) 0;
  background: var(--bg-light);
}

.case-large {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .case-large {
    grid-template-columns: 1fr;
  }
}

.case-content {
  padding: var(--spacing-xl);
}

.case-content .case-tag {
  display: inline-block;
  background: var(--primary-blue);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
}

.case-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.case-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
}

.case-result-box {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  background: var(--bg-light);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
}

.result-before,
.result-after {
  flex: 1;
}

.result-before .label,
.result-after .label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.result-before .value {
  color: var(--text-secondary);
}

.result-after .value {
  color: var(--primary-blue);
  font-weight: 700;
}

.result-arrow {
  font-size: 1.5rem;
  color: var(--primary-blue);
  flex-shrink: 0;
}

/* モバイルでの課題→解決ボックス レイアウト修正 */
@media (max-width: 480px) {
  .case-result-box {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
  }

  .result-before,
  .result-after {
    flex: 1;
    min-width: 0;
  }

  .result-before .value,
  .result-after .value {
    font-size: 0.9rem;
    word-break: break-word;
  }

  .result-arrow {
    font-size: 1.25rem;
    align-self: center;
    margin-top: var(--spacing-xs);
  }
}

.case-image {
  height: 100%;
  min-height: 300px;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Value Section */
.value-section {
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
  color: var(--white);
}

.value-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.value-content h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
}

.value-content .lead {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: var(--spacing-md);
  color: #90cdf4;
}

.value-content p {
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: var(--spacing-md);
}

.value-content .emphasis {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.6;
  opacity: 1;
}

/* Page CTA */
.page-cta {
  padding: var(--spacing-xxl) 0;
  background: var(--white);
  text-align: center;
}

.cta-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.cta-content p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.cta-sub {
  margin-top: var(--spacing-md);
  font-size: 0.875rem;
}

.cta-sub a {
  color: var(--primary-blue);
  text-decoration: underline;
}

/* Success Stories (Education page) */
.success-stories {
  padding: var(--spacing-xxl) 0;
  background: var(--bg-light);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.story-item {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.story-header {
  margin-bottom: var(--spacing-md);
}

.story-path {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.story-destination {
  display: inline-block;
  background: #48BB78;
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.story-item h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.story-item p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* Partner Section */
.partner-section {
  padding: var(--spacing-xl) 0;
  background: var(--white);
}

.partner-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.partner-content h2 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
}

.partner-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.partner-item p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Use Cases (PC page) */
.use-cases {
  padding: var(--spacing-xxl) 0;
  background: var(--bg-light);
}

.case-list {
  max-width: 800px;
  margin: var(--spacing-xl) auto 0;
}

.use-case-item {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-sm);
}

.use-case-item h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.use-case-item p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Shop CTA */
.shop-cta {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, #F5A623 0%, #ff8c00 100%);
  text-align: center;
}

.shop-cta-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.shop-cta-content > p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-lg);
}

.shop-cta .cta-primary {
  background: var(--white);
  color: #F5A623;
}

.shop-cta .cta-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.shop-note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: var(--spacing-md);
}

/* Product Showcase (SaaS page) */
.product-showcase {
  padding: var(--spacing-xxl) 0;
  background: var(--white);
}

.product-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
}

.product-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.product-info h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary);
}

.product-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
}

.product-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--spacing-xl);
}

.product-features h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--white);
  border-radius: var(--radius-md);
}

.feature-list .check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: #48BB78;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.feature-list strong {
  display: block;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.feature-list p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.product-sync-items {
  margin-top: var(--spacing-xl);
}

.product-sync-items h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.sync-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.sync-item {
  background: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.product-status {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

.status-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
}

.status-badge.beta {
  background: #2196F3;
  color: var(--white);
}

.product-status p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Photo Gallery */
.photo-gallery {
  padding: var(--spacing-lg) 0;
  background: var(--bg-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

@media (max-width: 600px) {
  .gallery-grid-4 {
    grid-template-columns: 1fr;
  }
}

.gallery-caption {
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--white);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Avatar Wide (for team photos) */
.avatar-wide {
  width: 120px !important;
  height: 80px !important;
  border-radius: var(--radius-md) !important;
}

.avatar-wide img {
  border-radius: var(--radius-md) !important;
}

/* Dev Philosophy */
.dev-philosophy {
  padding: var(--spacing-xxl) 0;
  background: var(--bg-light);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.philosophy-item {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  text-align: center;
}

.philosophy-item h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.philosophy-item p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* hrepcode Showcase */
.hrepcode-showcase {
  padding: var(--spacing-xxl) 0;
  background: var(--white);
}

.showcase-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  margin-top: var(--spacing-xl);
}

@media (max-width: 768px) {
  .showcase-content {
    grid-template-columns: 1fr;
  }
}

.showcase-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  /* 透過PNG画像の場合はシャドー不要 */
}

/* 透過画像以外にシャドーを付けたい場合 */
.showcase-image.with-shadow img {
  box-shadow: var(--shadow-lg);
}

.showcase-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.showcase-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

.feature-list-simple {
  list-style: none;
  padding: 0;
  margin-bottom: var(--spacing-lg);
}

.feature-list-simple li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-list-simple li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #48BB78;
  font-weight: 700;
}

.showcase-links {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.cta-outline {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid var(--primary-blue);
  border-radius: var(--radius-md);
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-base);
}

.cta-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
}

/* hrepcode showcase text h4 */
.showcase-text h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

/* Education Outcomes */
.education-outcomes {
  margin-top: var(--spacing-xxl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--border-light);
}

.education-outcomes h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

@media (max-width: 768px) {
  .outcomes-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

.outcome-card {
  background: var(--bg-light);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  text-align: center;
}

/* モバイルでは横並びレイアウトに変更 */
@media (max-width: 768px) {
  .outcome-card {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    text-align: left;
    padding: var(--spacing-md);
  }

  .outcome-card .outcome-icon {
    flex-shrink: 0;
    font-size: 2rem;
    margin-bottom: 0;
  }

  .outcome-card .outcome-content {
    flex: 1;
    min-width: 0;
  }
}

.outcome-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.outcome-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.outcome-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Curriculum Overview */
.curriculum-overview {
  margin-bottom: var(--spacing-xl);
}

.curriculum-overview h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.curriculum-overview > p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.curriculum-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--spacing-md);
}

@media (max-width: 1024px) {
  .curriculum-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .curriculum-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.curriculum-step {
  background: var(--white);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-blue);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: var(--spacing-sm);
}

.step-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Textbook Section (PDF Viewer) */
.textbook-section {
  padding: var(--spacing-xxl) 0;
  background: var(--bg-light);
}

.pdf-viewer-container {
  max-width: 900px;
  margin: var(--spacing-xl) auto 0;
}

.pdf-viewer-wrapper {
  background: var(--white);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.pdf-viewer-wrapper iframe {
  display: block;
}

.pdf-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--spacing-md);
}

/* Claude × Discord Section */
.claude-discord-section {
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(135deg, #2c2f33 0%, #23272a 100%);
}

.claude-discord-section .section-title,
.claude-discord-section .section-subtitle {
  color: var(--white);
}

.claude-discord-section .section-subtitle {
  opacity: 0.8;
}

.claude-discord-section .showcase-text h3 {
  color: var(--white);
}

.claude-discord-section .showcase-text p {
  color: rgba(255, 255, 255, 0.85);
}

.claude-discord-section .feature-list-simple li {
  color: rgba(255, 255, 255, 0.85);
}

.claude-discord-section .feature-list-simple li::before {
  color: #7289da;
}

.tech-note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--spacing-md);
}

.tech-note strong {
  color: rgba(255, 255, 255, 0.8);
}

/* Discord Demo Box */
.discord-demo-box {
  background: #36393f;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.discord-header {
  background: #2f3136;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #202225;
}

.discord-icon {
  font-size: 1.25rem;
}

.discord-title {
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
}

.discord-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.discord-message {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.discord-message .author {
  font-size: 0.875rem;
  font-weight: 600;
}

.discord-message.user .author {
  color: #7289da;
}

.discord-message.bot .author {
  color: #ed9b41;
}

.discord-message .content {
  color: #dcddde;
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Core Discovery Box */
.core-discovery {
  margin-top: var(--spacing-xxl);
  text-align: center;
}

.discovery-box {
  background: rgba(114, 137, 218, 0.15);
  border: 2px solid #7289da;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  max-width: 800px;
  margin: 0 auto;
}

.discovery-box h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
}

.discovery-box blockquote {
  font-size: 1.5rem;
  font-weight: 700;
  color: #7289da;
  margin: var(--spacing-md) 0;
  font-style: normal;
}

.discovery-box p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.discovery-box code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  color: #ed9b41;
}

/* Architecture Pillars */
.architecture-pillars {
  margin-top: var(--spacing-xxl);
}

.architecture-pillars h3 {
  color: var(--white);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

@media (max-width: 768px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

.pillar-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pillar-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.pillar-card h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
}

.pillar-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Usage Stats */
.usage-stats {
  margin-top: var(--spacing-xxl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.usage-stats h3 {
  color: var(--white);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  max-width: 900px;
  margin: 0 auto;
}

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

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

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #7289da;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--spacing-xs);
}

.stats-note {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: var(--spacing-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================================
   セクション背景コントラスト強化
   =========================================== */

/* 奇数セクション: 白背景 */
.section-white {
  background: var(--white);
}

/* 偶数セクション: 薄いグレー背景 */
.section-gray {
  background: #f8f9fa;
}

/* アクセントセクション: 青系グラデーション */
.section-accent {
  background: linear-gradient(135deg, #e8f4f8 0%, #f0f7fa 100%);
}

/* セクション区切り線（上部） */
.section-bordered {
  border-top: 1px solid #e2e8f0;
}

/* 強調カード背景 */
.card-highlight {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
}

/* hrepcode Showcase - より明確な背景 */
.hrepcode-showcase {
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 50%, #f0f4f8 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

/* Services Detail - コントラスト強化 */
.services-detail {
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.services-detail.alt-bg {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

/* Case Highlight - より目立つ背景 */
.case-highlight {
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* Success Stories - 薄い緑系 */
.success-stories {
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-top: 3px solid #48BB78;
}

/* Textbook Section - 背景強化 */
.textbook-section {
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  border-top: 1px solid #cbd5e1;
}

/* Partner Section - 微妙なアクセント */
.partner-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, #fefefe 0%, #f8f9fa 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

/* Page Intro - 薄いアクセント */
.page-intro {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

/* Key Numbers - より目立つ背景 */
.key-numbers {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
  border-top: 2px solid #cbd5e1;
  border-bottom: 2px solid #cbd5e1;
}

/* Use Cases - 暖色系アクセント (PC page) */
.use-cases {
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-top: 3px solid #F5A623;
}

/* Product Showcase - クリーンな白 */
.product-showcase {
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
}

/* Dev Philosophy - 青系アクセント */
.dev-philosophy {
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-top: 3px solid #4285F4;
}

/* Photo Gallery - ニュートラル */
.photo-gallery {
  padding: var(--spacing-lg) 0;
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
}

/* Page CTA - クリーンな白 */
.page-cta {
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

/* ロボットラボセクション */
.robolab-section {
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-top: 3px solid #48BB78;
}

.robolab-content {
  margin-top: var(--spacing-xl);
}

.robolab-overview {
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
}

.robolab-overview h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.robolab-overview p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

.robolab-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

@media (max-width: 768px) {
  .robolab-details {
    grid-template-columns: 1fr;
  }
}

.robolab-card {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.robolab-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.robolab-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.robolab-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* タイムライン */
.robolab-timeline {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  max-width: 600px;
  margin: 0 auto;
}

.robolab-timeline h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding-left: var(--spacing-md);
  border-left: 3px solid var(--primary-blue);
}

.timeline-year {
  font-weight: 700;
  color: var(--primary-blue);
  min-width: 80px;
}

.timeline-event {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===========================================
   メンバープロフィールページ
   =========================================== */

/* Page Hero - Member */
.page-hero-member {
  background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
}

.page-hero-tech {
  background: linear-gradient(135deg, #2196F3 0%, #1565C0 100%);
}

/* Member Profile */
.member-profile {
  padding: var(--spacing-xxl) 0;
  background: var(--white);
}

.profile-main {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

@media (max-width: 768px) {
  .profile-main {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.profile-image {
  position: sticky;
  top: calc(var(--header-height) + var(--spacing-lg));
}

.profile-image img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .profile-image {
    position: static;
    text-align: center;
  }

  .profile-image img {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }
}

.profile-content h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.profile-content .name-en {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: var(--spacing-sm);
}

.profile-role {
  font-size: 1.125rem;
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
}

.profile-summary {
  margin-bottom: var(--spacing-lg);
}

.profile-summary p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--spacing-sm);
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--bg-light);
  border-radius: var(--radius-md);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-value {
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Member Strengths */
.member-strengths {
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.strengths-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.strength-card {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition-base);
}

.strength-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.strength-icon-large {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--spacing-md);
}

.strength-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.strength-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Member Skills */
.member-skills {
  padding: var(--spacing-xxl) 0;
  background: var(--white);
}

.skills-layers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.skill-layer-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.layer-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--primary-blue);
  color: var(--white);
}

.layer-icon {
  font-size: 1.5rem;
}

.layer-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}

.skill-list {
  list-style: none;
  padding: var(--spacing-md) var(--spacing-lg);
  margin: 0;
}

.skill-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--border-light);
}

.skill-list li:last-child {
  border-bottom: none;
}

.skill-name {
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.skill-level {
  font-size: 0.875rem;
  color: #F5A623;
  letter-spacing: 2px;
}

/* Member Philosophy */
.member-philosophy {
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
  color: var(--white);
}

.member-philosophy .section-title,
.member-philosophy .section-subtitle {
  color: var(--white);
}

.member-philosophy .section-subtitle {
  opacity: 0.8;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.philosophy-card {
  background: rgba(255, 255, 255, 0.1);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.philosophy-number {
  display: inline-block;
  font-size: 2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: var(--spacing-sm);
}

.philosophy-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.philosophy-card p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

/* Member Career */
.member-career {
  padding: var(--spacing-xxl) 0;
  background: var(--bg-light);
}

.career-timeline {
  max-width: 800px;
  margin: var(--spacing-xl) auto 0;
}

.career-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--border-light);
}

.career-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

@media (max-width: 600px) {
  .career-item {
    grid-template-columns: 1fr;
  }
}

.career-period {
  font-weight: 700;
  color: var(--primary-blue);
  font-size: 0.9375rem;
}

.career-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.career-org {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
}

.career-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.career-content li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: var(--spacing-xs);
  color: var(--text-secondary);
  line-height: 1.6;
}

.career-content li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-weight: 700;
}

/* Member Responsibilities */
.member-responsibilities {
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.responsibilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.responsibility-card {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition-base);
}

.responsibility-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.resp-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: var(--spacing-md);
}

.responsibility-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.responsibility-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Member Projects */
.member-projects {
  padding: var(--spacing-xxl) 0;
  background: var(--white);
}

.projects-list {
  max-width: 800px;
  margin: var(--spacing-xl) auto 0;
}

.project-item {
  display: flex;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
}

@media (max-width: 600px) {
  .project-item {
    flex-direction: column;
    text-align: center;
  }
}

.project-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.project-content h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.project-content p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--spacing-sm);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

@media (max-width: 600px) {
  .project-tags {
    justify-content: center;
  }
}

.project-tags span {
  display: inline-block;
  padding: 4px 12px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Member Work Style */
.member-workstyle {
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.workstyle-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.workstyle-card {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.workstyle-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: var(--spacing-md);
}

.workstyle-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.workstyle-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===========================================
   Shop CTA - EC導線セクション
   =========================================== */
.shop-cta {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, #FFF8E7 0%, #FFF0D4 100%);
  border-top: 2px solid var(--accent-orange);
  text-align: center;
}

.shop-cta-content h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.shop-cta-content p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.shop-cta .cta-secondary {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.shop-cta .cta-secondary:hover {
  background: var(--accent-orange);
  color: var(--white);
}
