/* App Header Styles */
.app-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.app-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.app-info h1 {
  margin: 0 0 0.5rem 0;
  text-align: left;
  font-size: 1.8rem;
}

.app-info p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

/* Shortcut Card Styles */
.shortcuts-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-bottom: 2rem;
}

.shortcut-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #eee;
}

.shortcut-keys {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.key {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-bottom: 2px solid #adb5bd;
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: #495057;
  min-width: 1.5rem;
  text-align: center;
}

.plus {
  color: #6c757d;
  font-weight: 400;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.separator {
  color: #6c757d;
  font-weight: 400;
  margin: 0 0.2rem;
}

.shortcut-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.shortcut-description {
  color: #555;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.memorize-hint {
  background-color: #e3f2fd;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #1565c0;
  border-left: 3px solid #2196f3;
}

/* Back Link Styles */
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: #3498db;
  text-decoration: none;
  font-size: 0.95rem;
}

.back-link:hover {
  text-decoration: underline;
}

/* Popular Page Styles */
.popular-page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.popular-page-header h1 {
  margin: 0 0 1rem 0;
  font-size: 2.5rem;
  color: #2c3e50;
}

.popular-page-header p {
  margin: 0;
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0;
  line-height: 1.6;
  text-align: left;
}

.popular-app-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* 1/3ずつ均等幅 */
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.popular-app-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border: 1px solid #ddd;
}

.popular-app-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-decoration: none;
}

.popular-app-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 8px;
}

.popular-app-info {
  flex: 1;
}

.popular-app-info h3 {
  margin: 0 0 0.2rem 0;
  font-size: 1.1rem;
  color: #2c3e50;
  font-weight: 600;
}

.popular-app-info p {
  margin: 0;
  color: #444;
  line-height: 1.4;
  font-size: 0.95rem;
}

/* Popular Detail Styles */
.popular-detail-app-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.popular-detail-app-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 8px;
  background: white;
  padding: 8px;
}

.popular-detail-app-info h1 {
  margin: 0 0 0.5rem 0;
  text-align: left;
  font-size: 1.8rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.popular-detail-app-info p {
  margin: 0;
  opacity: 0.95;
  font-size: 0.95rem;
  line-height: 1.5;
}

.popular-shortcuts-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  margin-bottom: 2rem;
}

.popular-shortcut-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  position: relative;
  transition: all 0.3s ease;
}

.popular-shortcut-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-color: #3498db;
}

.popular-priority-badge {
  position: absolute;
  top: -8px;
  right: 16px;
  background: #ff6b6b;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.popular-shortcut-keys {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.popular-key {
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  border: 1px solid #dee2e6;
  border-bottom: 3px solid #adb5bd;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: #495057;
  min-width: 1.8rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.popular-plus {
  color: #6c757d;
  font-weight: 500;
  display: flex;
  align-items: center;
  font-size: 1rem;
}

.popular-separator {
  color: #6c757d;
  font-weight: 500;
  margin: 0 0.3rem;
  font-size: 1.1rem;
}

.popular-shortcut-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.8rem;
}

.popular-shortcut-description {
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.popular-popularity-description {
  background: #fff3cd;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #856404;
  border-left: 4px solid #ffc107;
  margin-bottom: 1rem;
  font-weight: 500;
}

.popular-memorize-hint {
  background-color: #e3f2fd;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #1565c0;
  border-left: 4px solid #2196f3;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .popular-app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* タブレット: 2列均等幅 */
  }
}

@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  
  .app-info h1 {
    text-align: center;
    font-size: 1.5rem;
  }
  
  .shortcuts-grid {
    grid-template-columns: 1fr;
  }
  
  .shortcut-card {
    padding: 1rem;
  }
  
  .key {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }

  .popular-page-header {
    margin-bottom: 2rem;
    padding: 1rem 0;
  }

  .popular-page-header h1 {
    font-size: 2rem;
  }

  .popular-page-header p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .popular-app-grid {
    grid-template-columns: 1fr; /* モバイル: 1列 */
    gap: 1rem;
    width: 100%;
  }

  .popular-app-card {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .popular-app-icon {
    width: 40px;
    height: 40px;
  }

  .popular-app-info h3 {
    font-size: 1rem;
  }

  .popular-app-info p {
    font-size: 0.85rem;
  }

  .popular-detail-app-header {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
  }
  
  .popular-detail-app-info h1 {
    text-align: center;
    font-size: 1.5rem;
  }
  
  .popular-shortcuts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .popular-shortcut-card {
    padding: 1.5rem;
  }
  
  .popular-key {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    min-width: 1.5rem;
  }
}

@media (max-width: 480px) {
  .app-header {
    margin-bottom: 1rem;
  }
  
  .shortcut-keys {
    gap: 0.2rem;
  }
  
  .key {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
    min-width: 1.2rem;
  }
  
  .plus {
    font-size: 0.8rem;
  }

  .popular-app-card {
    width: 100%;
    padding: 0.75rem;
  }

  .popular-app-icon {
    width: 40px;
    height: 40px;
  }

  .popular-detail-app-header {
    margin-bottom: 1rem;
  }
  
  .popular-shortcut-keys {
    gap: 0.2rem;
  }
  
  .popular-key {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    min-width: 1.3rem;
  }
  
  .popular-plus {
    font-size: 0.9rem;
  }
}

/* Motivation Page Styles */
.motivation-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.motivation-section {
  background: white;
  padding: 2.5rem;
  margin-bottom: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.motivation-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  border-color: #e0e0e0;
}

.motivation-section h2 {
  margin: 0 0 1.5rem 0;
  font-size: 1.8rem;
  color: #2c3e50;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.motivation-section p {
  margin: 0;
  line-height: 1.8;
  color: #555;
  font-size: 1.05rem;
  text-align: justify;
}

/* Responsive styles for motivation */
@media (max-width: 768px) {
  .motivation-content {
    padding: 0 0.5rem;
  }
  
  .motivation-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .motivation-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .motivation-section p {
    font-size: 1rem;
    line-height: 1.7;
  }
}
